If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Access a specific Physical file member in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-12, 05:36
StephenLewis StephenLewis is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
Question Access a specific Physical file member in DB2

Need your help.

I need to access records in a spcific physical file member using the STRSQL command on the i with the statements below without success:

CREATE ALIAS r37files/vgldetl_mbr FOR r37files/vgldetl(vd012011)
select * from r37files/vgldetl_mbr

The following message was received:
Keyword SELECT not expected. Valid tokens: <END-OF-STATEMENT>.

What is missing?

Thanks much.
Reply With Quote
  #2 (permalink)  
Old 01-11-12, 05:43
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
db2 on i-series ?
CREATE ALIAS r37files/vgldetl_mbr FOR r37files/vgldetl(vd012011)
select * from r37files/vgldetl_mbr
should there not be a statement terminator after the create alias.. like ;
as the next select.. is handled as part of previous statement
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 01-11-12, 05:48
StephenLewis StephenLewis is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
I did and also received the error message below:

Token ; was not valid. Valid tokens: <END-OF-STATEMENT>.
Reply With Quote
  #4 (permalink)  
Old 01-11-12, 05:49
StephenLewis StephenLewis is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
Guy Przytula
Database Software Consultant

Please pardon my bad manners for not acknowledging you in my initial e-mail.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On