DELETEFILES
The DELETEFILES option tells LOADPLUS whether to delete the SORTOUT, SORTWK, SYSUT1, and SYSERR files after the load completes successfully.
LOADPLUS 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 Descriptions of basic installation options.
DELETEFILES NO
DELETEFILES NO tells LOADPLUS not to delete any SORTOUT, SORTWK, SYSUT1, or SYSERR files.
DELETEFILES YES
DELETEFILES YES tells LOADPLUS to delete all corresponding SORTOUT, SORTWK, SYSUT1, and SYSERR files after the load completes successfully, regardless of any of the following factors:
- The JCL disposition of these files
- Whether the files were used
LOADPLUS deletes all physical sequential data sets whose ddnames match the SORTOUT, SORTWK, SYSUT1, and SYSERR names or ddname prefixes. This occurs after either the LOAD phase or the COMBINED phase completes successfully.
If the work files are on tape, you can use the TAPEDISP installation option to specify the final disposition of the work files.
Additional considerations
The following considerations apply to DELETEFILES YES:
- For a DSNUTILB load, SYSERR data sets are not deleted.
- If you also specify a value for the RETPD or EXPDT option for your dynamically allocated SYSERR data set, LOADPLUS deletes your SYSERR data set only if the expiration date is earlier than the current date, or if the value for RETPD is 0 or blank.
- If the SYSERR data set is allocated as a GDG data set, LOADPLUS deletes only the generation that was created during the current job.
Using DELETEFILES with SmartSwitch and the BMC AMI Utilities
The value defined for DELETEFILES will always override the value defined for the BMC AMI Utilities +DELETEOUTPUT option.
SYSDISC
This option tells LOADPLUS whether to delete the SYSDISC file after the load completes successfully.
Specifying the default
You can specify the default for the SYSDISC command option in your installation options module by using the second parameter of the DELFILES installation option. LOADPLUS was shipped with a default value of NO for this option. The command option overrides the default that is in the installation options module. However, if you are running in a worklist environment, LOADPLUS uses the DELFILES installation option differently.
Value | Description |
---|---|
NO | SYSDISC NO tells LOADPLUS not to delete the SYSDISC file automatically, even if it does not contain any discarded records. Note: If SYSDISC is defined with DISP=(any,DELETE,DELETE), LOADPLUS deletes these data sets after the load completes even if you specify SYSDISC NO. |
YES | SYSDISC YES tells LOADPLUS to delete the SYSDISC file if it does not contain any discarded records. Additional considerations The following considerations apply to SYSDISC YES:
|
Related topic