z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 1: Defining a Temporary VSAM Data Set Using ALLOCATE

z/OS DFSMS Using Data Sets
SC23-6855-00

 //ALLOC    JOB  ...
 //STEP1    EXEC PGM=IDCAMS
 //SYSPRINT DD   SYSOUT=A
 //SYSIN    DD   *
 
            ALLOC -
               DSNAME(&CLUSTER) -
               NEW         -
               RECORG(ES)  -
               SPACE(1,10) -
               AVGREC(M)   -
               LRECL(256)  -
               STORCLAS(TEMP)
 /*
The command's parameters are:
Parameter Purpose
DSNAME Specifies the data set name. If you specify a data set name for a system-managed temporary data set, it must begin with & or &&. The DSNAME parameter is optional for temporary data sets only. If you do not specify a DSNAME, the system generates a qualified data set name for the temporary data set.
NEW Specifies that a new data set is created in this job step.
RECORG Specifies a VSAM entry-sequenced data set.
SPACE Specifies an average record length of 1 and a primary quantity of 10.
AVGREC Specifies that the primary quantity specified on the SPACE keyword represent the number of records in megabytes (multiplier of 1,048,576).
LRECL Specifies a record length of 256 bytes.
STORCLAS Specifies a storage class for the temporary data set. The STORCLAS keyword is optional. If you do not specify STORCLAS for the new data set and your storage administrator has provided an ACS routine, the ACS routine can select a storage class.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014