ILE COBOL Language Reference

FILE-CONTROL Paragraph - Format 2 - Relative Files

FILE-CONTROL Paragraph - Format 2 - Relative
 
>>-FILE-CONTROL.--SELECT--+----------+--file-name--------------->
                          '-OPTIONAL-'
 
                   .-----------------------.
                   V                       | (1)
>--ASSIGN--+----+----+-assignment-name-1-+-+-------------------->
           '-TO-'    '-literal-1---------'
 
>--+----------------------------------+------------------------->
   |         (2)                      |
   '-RESERVE-------integer--+-------+-'
                            +-AREA--+
                            '-AREAS-'
 
>--+----------------------+--RELATIVE--------------------------->
   '-ORGANIZATION--+----+-'
                   '-IS-'
 
>--+-----------------------------------------------------------+-->
   '-ACCESS--+------+--+----+--+-SEQUENTIAL--+-------------+-+-'
             '-MODE-'  '-IS-'  |             '-| rel-key |-' |
                               '-+-RANDOM--+--| rel-key |----'
                                 '-DYNAMIC-'
 
>--+-------------------------------------------------------------+-->
   '-+------+--STATUS--+----+--data-name-1--+------------------+-'
     '-FILE-'          '-IS-'               |             (3)  |
                                            '-data-name-5------'
 
>--.-----------------------------------------------------------><
 
rel-key:
 
|--RELATIVE--+-----+--+----+--data-name-4-----------------------|
             '-KEY-'  '-IS-'
 
 

Notes:

  1. Subsequent repetitions syntax-checked only.

  2. Syntax-checked only.

  3. IBM Extension


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