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


Example 4: Allocate a Temporary VSAM Data Set

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

The following example shows allocating a temporary VSAM data set:

   //VSAM1    DD   DSN=&CLUSTER,DISP=(NEW,PASS),
   //              RECORG=ES,SPACE=(1,(10)),AVGREC=M,
   //              LRECL=256,STORCLAS=TEMP
Explanation of Keywords:
  • DSN specifies the data set name. If you specify a data set name for a temporary data set, it must begin with & or &&. This keyword is optional, however. If you do not specify a DSN, the system will generate a qualified data set name for the temporary data set.
  • DISP specifies that a new data set is to be allocated in this step and that the data set is to be passed for use by a subsequent step in the same job. If KEEP or CATLG are specified for a temporary data set, the system changes the disposition to PASS and deletes the data set at job termination.
  • 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 (10) specified on the SPACE keyword represents the number of records in megabytes (multiplier of 1048576).
  • LRECL specifies a record length of 256 bytes.
  • STORCLAS specifies a storage class for the temporary data set.

    This 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