The ASSIGN clause associates a file with an external medium.
ASSIGN Clause - Format
.-----------------------.
V | (1)
>>-ASSIGN--+----+----+-assignment-name-1-+-+-------------------><
'-TO-' '-literal-1---------'
Notes:
For sort or merge files (associated with an SD entry), no external medium is used. The related ASSIGN clause is syntax checked only.
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-'
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.