Previous topic |
Next topic |
Contact z/OS |
Examples of the SPACE parameter
z/OS MVS JCL Reference
The DD statement defines a temporary data set. The UNIT parameter requests any available tape or direct access volume; MIXED is the installation’s name for a group of tape and direct access devices. If a tape volume is assigned, the SPACE parameter is ignored; if a direct access volume is assigned, the SPACE parameter is used to allocate space to the data set. The SPACE parameter specifies only the required subparameters: the type of allocation and a primary quantity. It requests that the system allocate 10 cylinders.
The DD statement defines a new partitioned data set. The system allocates 10 cylinders to the data set, of which ten 256-byte records are for a directory. Since the CONTIG subparameter is coded, the system allocates 10 contiguous cylinders on the volume.
These DD statements request space in block lengths. The average block length of the data is 1024 bytes. 75 blocks of data are expected as output. Each block is preceded by a key eight bytes long. The system computes how many tracks are needed, depending on the device requested in the UNIT parameter.
In this example, the SPACE parameter asks the system to allocate 5 tracks, beginning on the second track of the volume.
This example shows how to create a multivolume data set on two complete volumes. The two volumes do not contain other data sets. A volume on 3350 Direct Access Storage contains 555 cylinders. The unrequested cylinder contains the volume table of contents (VTOC).
In this example, the space allocation defined in the DCLAS03 data class is overridden by the SPACE and AVGREC parameters, which indicate an average record length of 128 bytes, a primary quantity of 5K (5,120) records, and a secondary quantity of 2K (2,048) records.
Copyright IBM Corporation 1990, 2014