Uncatalog Datasets Example


Scenario - Uncatalog the PS and PDS using IEFBR14 utility.

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

JCL -

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

Output -

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

Uncatalog Dataset Status

Explaining Example -

  • DD1 DD ... - Specifies PS dataset with DISP for uncatalog.
  • DD2 DD ... - Specifies PDS dataset with DISP for uncatalog.
  • DISP=(OLD,UNCATLG,DELETE) - Specifies that the dataset to be uncatalog on successful processing.

Validation -

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

Uncatalog Dataset Output