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


Allocating Data Sets with the TSO ALLOCATE Command

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

The following example allocates a new sequential data set with space allocated in tracks:
   ALLOC DA(EX1.DATA) DSORG(PS) SPACE(2,0) TRACKS LRECL(80) RECFM(F,B) NEW

   The new data set name: GOLD.EX1.DATA
   The number of tracks:  2
   The logical record length: 80
   The block size: determined by the system
   The record format: fixed block
 

You do not have to specify the user ID, GOLD, as an explicit qualifier. Because the BLKSIZE parameter is omitted, the system determines a block size that optimizes space usage.
The following example allocates a new VSAM entry-sequenced data set, with a logical record length of 80, a block size of 8000, on two tracks. To allocate a VSAM data set, specify the RECORG keyword on the ALLOCATE command. RECORG is mutually exclusive with DSORG and with RECFM. To allocate a key-sequenced data set, you also must specify the KEYLEN parameter. RECORG specifies the type of data set you want.
   ALLOC DA(EX2.DATA) RECORG(ES) SPACE(2,0) TRACKS LRECL(80)
   BLKSIZE(8192) NEW

   ES—Entry-sequenced data set
   KS—Key-sequenced data set
   LS—Linear data set
   RR—Relative record data set

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014