SPACE Parameter Example


Scenario1 - Defines the temporary dataset.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//DD01  DD  DSN=&TEMPMTH,SPACE=(CYL,10)

Scenario2 - Allocate PS with 3 TRKs primary and 2 TRKs seconday memory.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MATEPKI  JOB (123),'MTH',NOTIFY=&SYSUID 
//*
//STEP10   EXEC PGM=IEFBR14
//DD1      DD DSN=MATEPK.IEFBR14.PSFILE,
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(3,2),RLSE),
//            UNIT=SYSDA,VOLUME=SER=DEVHD4,
//            DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)

Scenario3 - Allocate PDS.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MATEPKP  JOB (123),'MTH',NOTIFY=&SYSUID
//*
//STEP01   EXEC PGM=IEFBR14
//DD1      DD DSN=MATEPK.IEFBR14.PDSFILE,
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(10,10,10),RLSE),
//            UNIT=SYSDA,VOLUME=SER=DEVHD4,
//            DCB=(DSORG=PO,RECFM=FB,LRECL=80,BLKSIZE=800)

Scenario4 - Allocate contiguous memory.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MATEPKP  JOB (123),'MTH',NOTIFY=&SYSUID
//*
//STEP01   EXEC PGM=IEFBR14
//DD1      DD DSN=MATEPK.IEFBR14.PDSFILE,
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(CYL,(10,5,10),RLSE,CONTIG),
//            UNIT=SYSDA,VOLUME=SER=DEVHD4,
//            DCB=(DSORG=PO,RECFM=FB,LRECL=80,BLKSIZE=800)