Start of change

Clear media

By specifying CLEAR(*ALL) you will clear all the files on the media.

By specifying CLEAR(*AFTER) you will automatically clear all media after the first volume. The system sends an inquiry message when it encounters the specified optical file on the first volume. This allows you to either end the save operation or replace the file. Specifying CLEAR(*REPLACE) automatically replaces the active data of the specified optical file on the media.

The only option on the CLEAR parameter that will clear all the files is CLEAR(*ALL). Otherwise, the system sends an inquiry message for each specified optical file name it encounters. Specifying CLEAR(*NONE) will send an inquiry message for each specified optical file name it encounters, not just the first one.

To avoid receiving an inquiry message during the save operation, you can perform either of the two following functions:
Note: Do not use the CLEAR(*NONE) parameter, this sends an inquiry message. IBM® provides online information on using the CLEAR parameter with the save commands.
Related concepts
Volume lists with UDF format media
End of change