Creating New Generation as PS


A GDG generation can be a PS. It is used to take the PRODuction or test files backup. IEFBR14 utility creates the generation as PS.

Example -

Scenario - Create GDG generation as PS.

Code -

----+----1----+----2----+----3----+----4----+----5----+----6
//MATEPKPS JOB (123),'MTH',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//             NOTIFY=&SYSUID 
//********************************************************
//* Allocate generation using IEFBR14 Utility
//********************************************************
//STEP01   EXEC PGM=IEFBR14
//DD1      DD DSN=MATEPK.TESTPS.GDG(+1),
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(3,2),RLSE),
//            UNIT=SYSDA,VOLUME=SER=DEVHD4,
//            DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)

SYSPRINT in Spool -

Creating New Generation as PS SYSPRINT

Output -

Creating New Generation as PS OUTPUT Creating New Generation as PS OUTPUT

Explaining Example -

In the above example, we have created GDG generation as PS. This generation can work the same as the regular PS. It is mainly used to take the PRODuction files backup during the region cycle backup.