IEFBR14 Uncatalog Datasets
UNCATALOG removes the dataset entry from the catalog table. So that if we search for the dataset from the Data Set List Utility (=3.4) using dataset's name, we won't be able to find the dataset. UNCATALOG performs on cataloged data sets to hide them from the search. To access the dataset, we should also provide the Volume Serial number where the dataset resides upon.
IEFBR14 can be used to uncatalog the sequential file (PS) or partitioned dataset (PDS). The disposition to uncatalog the dataset is DISP=(OLD,UNCATLG,..).
UNCATLG option performs below two tasks -
- Removes the entry from the system or user catalog directory for the dataset.
- Removes all related indexes to access the dataset.
Syntax -
...
//DD1 DD DSN=datset.name,DISP=(OLD,UNCATLG,..)
...
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----+
...
//STEP01 EXEC PGM=IEFBR14
//DD1 DD DSN=MATEPK.IEFBR14.PSFILE,
// DISP=(OLD,UNCATLG,DELETE)
//DD2 DD DSN=MATEPK.IEFBR14.PDS,
// DISP=(OLD,UNCATLG,DELETE)
...
Validation -
Try to search in ISPF 3.4 (Data Set List Utility) for its availability in search catalog.
