OPEN Statement - Format 2 - Indexed and Relative

Read syntax diagramSkip visual syntax diagram
OPEN Statement - Format 2 - Indexed and Relative

         .-----------------------------.   
         |          .-------------.    |   
         V          V             |    |   
>>-OPEN----+-INPUT----file-name-1-+--+-+-----------------------><
           |         .-------------. |     
           |         V             | |     
           +-OUTPUT----file-name-2-+-+     
           |      .-------------.    |     
           |      V             |    |     
           '-I-O----file-name-3-+----'     

For relative files only, the OPEN statement is not allowed for logical file members:
  • That are based on more than one physical file
  • That contain select or omit logic