Use the ALLOC_DSN command to create a sequential file or a new PDS.
Syntax
Use this format for the ALLOC_DSN command:
ALLOC_DSN DSNAME dsname UNIT unit [VOLUME volume] [DDNAME ddname]
SPACE {blk|CYL|TRK},prim[,sec[,dir] [RECFM recfm] [LRECL lrecl]
[BLKSIZE blksize]
Parameters
The ALLOC_DSN command takes these parameters:
Name of the data set to be allocated. This parameter is required.
Unit address or symbolic name of the device where the data set is to be allocated. This parameter is required.
DDname assigned to the newly allocated data set. If specified, this value may be used by the SRVMAINT program to direct output to the new data set.
The values that follow this required parameter determine how much space is reserved for the data set.
Indicates that the values specified for prim and sec are for data blocks of the size blk.
Indicates that the values specified for prim and sec are in cylinder increments.
Indicates that the values specified for prim and sec are in track increments.
Amount of space initially reserved for the data set.
If specified and not zero, specifies a secondary amount of space that is allocated whenever the data set is full.
If specified and not zero, specifies the number of 256-byte blocks reserved for a PDS directory. A non-zero value for dir allocates a PDS.
Record format to be assigned to the data set. Permitted values are: F, FA, FM, FB, FBA, FBM, V, VA, VM, VB, VBA, VBM, and U. The default is FB.
Logical record length assigned to the data set. The default is: 80 for RECFM=F; 255 for RECFM=V; 0 for RECFM=U
Block size assigned to the data set. The default is lrecl X 10.
Usage Note
There are many additional attributes that you may assign to a data set. If you require any of these, you should use a JCL allocation strategy.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |