Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2012
    Posts
    3

    Question Unanswered: 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.

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    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
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Jan 2012
    Posts
    3
    I did and also received the error message below:

    Token ; was not valid. Valid tokens: <END-OF-STATEMENT>.

  4. #4
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •