DELETEFILES
UNLOAD PLUS was shipped with a default value of YES for this option. You can override that default by using the DELFILES installation option. For more information, see Basic-installation-options.
For an example of using the DELETEFILES option when an unload job terminates, see Example 14 — Handling an abnormal termination.
DELETEFILES YES
DELETEFILES YES tells UNLOAD PLUS to perform DELETEFILES processing, which differs depending on whether the unload job is running in a worklist environment:
- During DELETEFILES processing outside of a worklist, UNLOAD PLUS deletes the following data sets:
- All physical sequential data sets whose ddnames match the SYSREC, SYSRED, and SORTWK ddnames or ddname prefixes
- All referenced file data sets
If you specify DELETEFILES YES in a worklist, UNLOAD PLUS deletes only the dynamically allocated SYSREC, SYSRED, and referenced file data sets.
In a worklist environment, UNLOAD PLUS ignores the value that you set for the DELFILES installation option and, by default, does not delete the files. UNLOAD PLUS functions this way so that the files exist for subsequent executions in the worklist.
To specify the final disposition of tape files when you specify DELETEFILES YES, you can specify the TAPEDISP installation option.
Restrictions
UNLOAD PLUS does not delete the following files:
- When DIRECT NO is in effect, any referenced files
- Any HFS-referenced files
- Any files that are defined with an abnormal allocation disposition other than DELETE
- Any files that are defined with an expiration date or retention period that prevents the delete from being honored
UNLOAD PLUS does not delete files when the job terminates with an x22 abend.
DELETEFILES NO
DELETEFILES NO tells UNLOAD PLUS not to delete any data sets after an unsuccessful unload.
Using DELETEFILES with SmartSwitch and the BMC AMI Utilities utilities
The value defined for DELETEFILES will always override the value defined for the BMC AMI Utilities utilities +DELETEOUTPUT option.