Displaying save and restore file information about optical storage

You can use various commands to save and restore file information.

As an example, information concerning the save and restore files that are contained on a given optical volume can be displayed using the Display Optical (DSPOPT) command. The following command displays the information for all save and restore files that are found in the root directory of the optical volume SRVOL1:
DSPOPT VOL(SRVOL1) DATA(*SAVRST) PATH(/)

Using the OPTFILE parameter

The OPTFILE parameter is used in save and restore commands to designate the optical file path name to be used to contain the save data. The system dynamically creates any specified directory names that do not exist.

The OPTFILE parameter has a default value of (*). By using the default parameter value, you will place the file in the root directory of the optical volume that is specified by the VOLUME parameter. Additionally, in commands other than SAV, the file name is the name of the IBM® i library that contains the objects that are saved.

For the SAV command, OPTFILE(*) generates a file name of the form SAVyyyymmddhhmmssmmm, where yyyymmddhhmmssmmm is the current date and time.

Using the media eject option

For stand-alone drive devices that are attached by PowerPC® IOAs, you can automatically open the media tray at the conclusion of a save and restore operation. You can do this by specifying the ENDOPT(*UNLOAD) parameter. The system ignores this parameter for optical library devices. The ENDOPT(*LEAVE) or ENDOPT(*REWIND) parameters have no effect on optical stand-alone drive devices or optical media library devices.