ILE COBOL Language Reference

+-------------------------------IBM Extension--------------------------------+

FILE-CONTROL Paragraph - Format 5 - Transaction Files

FILE-CONTROL Paragraph - Format 5 - Transaction
 
>>-FILE-CONTROL.--SELECT--file-name----------------------------->
 
                   .-----------------------.
                   V                       | (1)
>--ASSIGN--+----+----+-assignment-name-1-+-+-------------------->
           '-TO-'    '-literal-1---------'
 
>--+----------------------+--TRANSACTION------------------------>
   '-ORGANIZATION--+----+-'
                   '-IS-'
 
>--+-----------------------------------------------------------+-->
   '-ACCESS--+------+--+----+--+-SEQUENTIAL--+-------------+-+-'
             '-MODE-'  '-IS-'  |             '-| rel-key |-' |
                               '-DYNAMIC--| rel-key |--------'
 
>--+--------------------------------------------------------+--->
   '-+------+--STATUS--+----+--data-name-1--+-------------+-'
     '-FILE-'          '-IS-'               '-data-name-5-'
 
>--+-----------------------------------+--.--------------------><
   '-CONTROL-AREA--+----+--data-name-7-'
                   '-IS-'
 
rel-key:
 
|--RELATIVE--+-----+--+----+--data-name-4-----------------------|
             '-KEY-'  '-IS-'
 
 

Notes:

  1. Subsequent repetitions syntax checked only.

See the chapter on Transaction Files in the ILE COBOL for AS/400 Programmer's Guide for more information on working with transaction files.

+----------------------------End of IBM Extension----------------------------+


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