Catalog Datasets Example


Scenario - Catalog the PS and PDS that are uncataloged earlier.

Input PS File - MATEPK.IEFBR14.PSFILE
Input PDS - MATEPK.IEFBR14.PDS

JCL -

----+----1----+----2---+---3----+---4---+---5---+
//MATEPKC  JOB (123),'MTH',CLASS=A,MSGCLASS=A,
//             MSGLEVEL=(1,1),NOTIFY=&SYSUID 
//*
//STEP01   EXEC PGM=IEFBR14
//DD1      DD DSN=MATEPK.IEFBR14.PSFILE,
//            VOLUME=SER=DEVHD4,UNIT=SYSDA,
//            DISP=(OLD,CATLG,DELETE)
//DD2      DD DSN=MATEPK.IEFBR14.PDS,
//            VOLUME=SER=DEVHD4,UNIT=SYSDA,
//            DISP=(OLD,CATLG,DELETE)

Output -

Go to Spool (SDSF -> ST) and verify the status in the JESYSMSG DDname of the corresponding job.

Catalog Datasets Status

Explaining Example -

  • DD1 DD ... - Specifies PS dataset with DISP for catalog.
  • DD2 DD ... - Specifies PDS dataset with DISP for catalog. ().
  • DISP=(OLD,CATLG,DELETE) - Specifies the file should be cataloged on successful completion.
  • MATEPK.IEFBR14.PSFILE  CATALOGED,
    MATEPK.IEFBR14.PDS  CATALOGED
    - Specifies the MATEPK.IEFBR14.PSFILE and MATEPK.IEFBR14.PDS cataloged successfully on DEVHD4 volume.

Validation -

Try to search in ISPF 3.4 (Data Set List Utility) for its availability in search catalog.

Catalog Dataset Output