
FREE Parameter DD Statements for Tape and Disk Datasets
6-24 User Reference
FREE Parameter
Specifies when a tape drive assignment is to be released. FREE is valid for tape datasets only.
If FREE is not specified, the assignment is released when the dataset is closed.
When you are processing multi-dataset tapes, you must specify FREE=END for every dataset
except the last one processed in the job.
FREE=
{}
CLOSE
END
CLOSE releases the assignment when the dataset is closed. This is the default.
END holds the assignment beyond the close of the dataset. The assignment is released at the
end of the job.
The following example shows how the FREE parameter is used to hold the assignment until
the last dataset is closed.
* //INPUT1 DD DSN='INPUT.DSN.1'
* // UNIT=TAPE,
* // DISP=(OLD,KEEP),
* // FREE=END,
* // VOL=(,RETAIN)
* //INPUT2 DD DSN='INPUT.DSN.2'
* // UNIT=TAPE,
* // DISP=(OLD,KEEP),
* // FREE=END,
* // VOL=(,RETAIN)
* //INPUT3 DD DSN='INPUT.DSN.3',
* // UNIT=TAPE,
* // DISP=(OLD,KEEP)
Syntax
Values
Example
Komentáře k této Příručce