Previous Topic: Batch Maintenance Command OverviewNext Topic: ALLOC_ILOG


ALLOC_DSN

This command creates a sequential file or a new PDS.

Syntax

ALLOC_DSN DSNAME dsname UNIT unit [VOLUME volume] [DDNAME ddname]
 
  SPACE {blk|CYL|TRK},prim[,sec[,dir] [RECFM recfm] [LRECL lrecl]
 
    [BLKSIZE blksize]

Parameters

dsname

Name of the data set to be allocated. This parameter is required.

volume

Unit address or symbolic name of the device where the data set is allocated. This parameter is required.

ddname

DDname assigned to the newly allocated data set. If specified, the SRVMAINT program can use this value to direct output to the new data set.

SPACE

Values that follow this required parameter determine how much space is reserved for the data set.

blk

Values specified for prim and sec are for data blocks of the size blk.

CYL

Values specified for prim and sec are in cylinder increments.

TRK

Values specified for prim and sec are in track increments.

prim

Amount of space that is initially reserved for the data set.

sec

If specified and not zero, specifies a secondary amount of space that is allocated when the data set is full.

dir

If specified and not zero, specifies the number of reserved 256-byte blocks for a PDS directory. A non-zero value for dir allocates a PDS.

recfm

Record format to be assigned to the data set. The permitted values are: F, FA, FM, FB, FBA, FBM, V, VA, VM, VB, VBA, VBM, and U. The default is FB.

lrecl

Logical record length that is assigned to the data set. The default is: 80 for RECFM=F; 255 for RECFM=V; 0 for RECFM=U

blksize

Block size that is assigned to the data set. The default is lrecl X 10.

Usage Note

You can assign many more attributes to a data set. If you require any of these attributes, use a JCL allocation strategy.