What actions are taken for affected data sets?
Cleanup actions are designed to restore the catalog entries that were modified by the job to the state that they were in before the job started. Cleanup either deletes or uncatalogs data sets.
When the scheduler performs cleanup processing for a job, data sets and generation data groups (GDG) generations that have been created in that job are either deleted or uncataloged. Uncataloged data sets are cataloged. Cleanup actions for data set dispositions in a job describes the action that the scheduler takes for each data set disposition.
DISP Reference to the data set | Data Set Allocated and Cataloged at Job Start | Reference to a Previous Step | SMS in the Environment | Protected by RCLOPTS | Cleanup Actions |
---|---|---|---|---|---|
NEW, CATLG | YES | YES | No impact | No impact | None |
NO | No impact | YES | None | ||
NO | DELETE | ||||
NO | No impact | No impact | No impact | None | |
NEW, KEEP | YES | YES | No impact | No impact | None |
NO | No impact | YES | None | ||
NO | None or DELETE2 |
||||
NO | No impact | No impact | No impact | None | |
OLD, UNCATLG | YES | No impact | YES | No impact | None |
NO | YES | None | |||
NO | CATALOG | ||||
NO | No impact | No impact | No impact | None | |
SHR, UNCATLG | YES | No impact | YES | No impact | None |
NO | YES | None | |||
NO | CATALOG | ||||
NO | No impact | No impact | No impact | None | |
MOD, CATLG | YES | YES | No impact | No impact | None |
NO | YES | YES | None | ||
NO | None or DELETE1 |
||||
NO | YES | None | |||
NO | Uncatalog | ||||
NO | No impact | No impact | No impact | None | |
MOD, UNCATLG | YES | No impact | No impact | YES | None |
NO | CATALOG | ||||
NO | No impact | No impact | No impact | None | |
, , CATLG (abnormal step end) | YES | YES | No impact | No impact | None |
NO | No impact | YES | None | ||
NO | DELETE | ||||
NO | No impact | No impact | No impact | None | |
, , UNCATLG (abnormal step end) | YES | YES | No impact | No impact | None |
NO | No impact | YES | None | ||
NO | CATALOG | ||||
NO | No impact | No impact | No impact | None | |
1 The
Cleanup action depends on the value specified in the SMSMODDELETE
parameter in DSTOPTS:
2 The Cleanup
action depends on where the data set is allocated:
|
If you restart a job from a specified step, the scheduler does not try to restore a data set catalog status that was changed before the restart step.
- 1
- This data set would be uncataloged.
- 2
- This data set would be cataloged.
- 3
- This data set would be cataloged.
Actions for data sets with DISP=NEW are not executed when they belong to flushed steps or when they were referenced in previous steps with DISP=SHR, OLD, or MOD, which are included in the new run range.