Allocate a New Data Set: Example 3

This example shows the ALLOCATE command being used to allocate a new data set XMP.ALLOCATE.EXAMP3.
//ALLOC    JOB  ...
//STEP1    EXEC PGM=IDCAMS,DYNAMNBR=1
//SYSPRINT DD   SYSOUT=A
//SYSIN    DD   *
     ALLOC -
           DSNAME(XMP.ALLOCATE.EXAMP3) -
           NEW CATALOG -
           SPACE(10,5) TRACKS -
           BLKSIZE(1000) -
           LRECL(100) -
           DSORG(PS) -
           UNIT(3380) -
           VOL(338002) -
           RECFM(F,B)
/*
The parameters are:
  • DSNAME states that the name of the data set to be allocated is XMP.ALLOCATE.EXAMP3.
  • NEW creates the data set.
  • CATALOG retains the data set in the catalog after step termination.
  • SPACE allocates the amount of space to the new data set. In this example, TRACKS is also used so the primary space is 10 tracks with an increment of 5 tracks.
  • BLKSIZE requires that the data set control block (DCB) block size is 1000.
  • LRECL sets the length of a logical record in the data set to 100.
  • DSORG makes the data set physical sequential (PS).
  • UNIT and VOL indicate that the data set is to reside on 3380 volume 338002.
  • RECFM shows fixed block records in the data set.