ALLOCATE command

The ALLOCATE command allocates a file to an existing data set, a concatenation of existing data sets, or a temporary data set.

Read syntax diagramSkip visual syntax diagram ALLOCATEFILEddname attributes;
attributes
Read syntax diagramSkip visual syntax diagramDSNAMEdsnOLDSHRMODDSNAME(,dsn)OLDSHRTEMPTRACKS(primspc,secspc)
FILE ddname
The DD name of the file.
DSNAME dsn
The name of an existing data set.
DSNAME (dsn,dsn,…)
The names of the existing data sets that need to be concatenated.
TEMP
A temporary data set is allocated.
TRACKS (primspc,secspc,…)
The number of tracks for the primary space (primspc) and secondary space (secspc) to allocate for the temporary data set.
OLD
Set the disposition of the data set to OLD.
SHR
Set the disposition of the data set to SHR.
MOD
Set the disposition of the data set to MOD.

Usage note

This command is not available under CICS®.

Refer to the following topics for more information related to the material discussed in this topic.