ILE COBOL Language Reference


ASSIGN Clause

The ASSIGN clause associates a file with an external medium.

ASSIGN Clause - Format
 
                   .-----------------------.
                   V                       | (1)
>>-ASSIGN--+----+----+-assignment-name-1-+-+-------------------><
           '-TO-'    '-literal-1---------'
 
 

Notes:

  1. Subsequent repetitions syntax checked only.

For sort or merge files (associated with an SD entry), no external medium is used. The related ASSIGN clause is syntax checked only.

assignment-name-1, literal-1
The assignment-name-1 or literal-1 makes the association between the file and the external medium.

Any assignment-name-1 or literal-1 after the first is syntax checked, but has no effect on the execution of the program

Assignment-name-1 or literal-1 consists of 3 parts:

It has the following general structure:

Format
 
>>-device-- -file-name--+-------------+------------------------><
                        '- -attribute-'
 
 


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