
VOLUME Parameter DD Statements for Tape and Disk Datasets
6-36 User Reference
SER=volser selects a volume by volume serial number. You can use this subparameter to
specify a disk volume for uncontrolled disk datasets.
SER=poolname selects a disk pool. It is required for Start Track 1 datasets.
In the following example, the VOL parameter indicates the pool where the Start Track 1
dataset is located.
* //DISKIN DD DSN=INVENTRY.FILE,SPACE=(CYL,(5,5),RLSE),
* // DISP=(NEW,KEEP),VOL=SER=SYSWK1
REF=*.ddname associates a subdataset with a prime dataset. Use it with
DISP=(NEW,CATLG) when you want to automatically catalog a subdataset. You can also
use it when you want to refer to a prime dataset other than the one specified in the subdataset's
dataset definition. Both the prime dataset and the subdataset must be controlled, and both
must be defined with DD statements. The prime dataset's DD statement must precede all DD
statements for related subdatasets.
Specify the ddname that is on the prime dataset's DD statement. For example, specify:
REF=*.TAPEOUT
to refer to a prime dataset defined with the ddname TAPEOUT.
In the following example, the tape is unloaded at close.
* //TAPEIN DD DSN=INVENTRY.FILE,
* // DISP=(NEW,KEEP),VOL=(PRIVATE)
The following example automatically catalogs a prime dataset and two new subdatasets. The
datasets are "stacked" on one tape to create a multi-dataset group. 'PRIME.DSN.1' is the first
dataset on the tape, 'NEWSUB.DSN.2' is the second dataset and 'NEWSUB.DSN.3' is the
third dataset.
* //TAPEDUM DD DSN='PRIME.DSN.1(+0)',
* // OPTION=SYS010,
* // UNIT=TAPE
* // DISP=(NEW,CATLG),
* // FREE=END,
* // VOL=(,RETAIN)
* //TAPEOUT DD DSN='NEWSUB.DSN.2(+0)',
* // OPTION=SYS010,
* // UNIT=TAPE,
* // DISP=(NEW,CATLG),
* // FREE=END,
* // VOL=(,RETAIN,,,REF=*.TAPEDUM)
* //TAPEOUT DD DSN='NEWSUB.DSN.3(+0)',
* // OPTION=SYS010,
* // UNIT=TAPE,
* // DISP=(NEW,CATLG),
* // VOL=(PRIVATE,,,,REF=*.TAPEDUM)
// EXEC PROGX
Example
Example
Comentarios a estos manuales