COBOL/400 Language Help

Format 2 (Indexed and Relative Files)

Description
In Format 2 of the OPEN statement, you must specify at least one of the phrases INPUT, OUTPUT, or I-O with the OPEN keyword. The INPUT, OUTPUT, and I-O phrases may appear in any order.
Format 2 (Indexed and Relative Files)
 
           *--------------------------*
           +          *-----------*   +
           V          V           +   +
->->---OPEN--*--INPUT---file-name-1-*---*---------------------><-
           +           *-----------*  +
           +           V           +  +
           *--OUTPUT---file-name-2-*--*
           +        *-----------*     +
           +        V           +     +
           *--I-O---file-name-3-*-----*
 


[ Top of Page | Previous Page | Next Page | Table of Contents ]