
Multi-Dataset Processing Examples Processing Tape Datasets
7-20 User Reference
This example creates multiple datasets with different DTF names. Because the different DTFs
use different logical units, a logical unit must be supplied in the dataset definitions.
// JOB XYZ
*
* ----------------------------------------------------------+
* CATALOG A PRIME AND 2 SUB DSN'S +
* ----------------------------------------------------------+
*
// EXEC TSIDMNT
CAT 'PRIME' SYS010
CAT 'SUB1' NSU='PRIME' SYS010
CAT 'SUB2' NSU='PRIME' SYS010
/*
*
* ----------------------------------------------------------+
* CREATE A PRIME AND 2 SUB DSN'S. PROGX PERFORMS 3 OPENS, +
* ONE EACH FOR TAPE1, TAPE2 AND TAPE3. +
* ----------------------------------------------------------+
*
// TLBL TAPE1,'PRIME',,,,,,11 8 + 3
// TLBL TAPE2,'SUB1',,,,,,11 8 + 3
// TLBL TAPE3,'SUB2',,,,,,2 2
// EXEC PROGX
/*
*
/&
The options used are:
Code Action
2 Dismounts the tape (for the last dataset)
3 Inhibits rewind at close (for all but the last dataset)
8 Holds the drive assignment at close (for all but the last dataset)
Because LUB allocation is inhibited through the dataset definition (SYS010 specified in the
definitions of both the prime dataset and the subdatasets), 64 does not have to be specified on
the TLBL.
Example 3
Komentarze do niniejszej Instrukcji