The DD command allocates a data set dynamically.
This command has the following format:
DD=name | DD=*
[ ,DSN=datasetname ]
[ ,DISP=( { OLD | SHR | MOD | NEW } [ ,ndisp ] [ ,cdisp ] ] ) ]
[ ,VOL=volume ]
[ ,UNIT=unitname ]
[ ,{ CYL=( pri,sec ) | TRK=( pri,sec ) } ]
[ ,BLKSIZE=nnnnn ]
If the operands cannot fit on one line, you can use the plus sign (+) to indicate that the command is continued. For example:
DD=FRED,+ DSN=FRED.DATASET,+ DISP=OLD
Specifies the ddname being allocated. This operand must be first, and a valid ddname must be used. DD=* dynamically concatenates this data set to the previous data set allocation (which must be a data set, not a SYSOUT allocation).
Specifies the data set to be allocated. A PDS member name or GDG relative generation number can be specified in parenthesis after the data set name.
Specifies the data set disposition. ndisp and cdisp are the standard UNCATLG, CATLG, DELETE, and KEEP options and default as in standard JCL. If only the first disposition is required, no parentheses are necessary. For example:
DISP=OLD
Specifies the volume that the data set is (to be) on. For existing data sets, the operand bypasses a catalog search. Generally, also specify the UNIT operand.
Specifies the unit type that the data set is (to be) on. This operand is required for existing data sets if the volume is specified.
For new data sets, allows specification of a space allocation value.
Note: You cannot allocate a PDS because no directory amount can be specified.
Lets you specify a block size. This operand is also useful when concatenating data sets of unlike block size because it sets the DCB BUFLEN value.
| Copyright © 2012 CA. All rights reserved. |
|