Ejecting an optical disk

Use the MVS LIBRARY EJECT command to eject a specific optical disk from an optical library. This command requires that the optical volume specified be controlled by the instance of OAM on which the command was entered. If the member name associated with the volume serial number is not the member name for this instance of OAM, the command fails and message CBR1068I is issued.

In an OAMplex, if a shelf-resident volume is entered into a library that is not known to an OAM in the OAMplex, that OAM removes it from its configuration and issues a message that the volume is no longer known. After that time, any read for that volume on that OAM fails with a volume unknown error. If the volume is ejected and assigned back to a pseudo library that is known to OAM, the volume is added back to the configuration.

The following command syntax ejects a specific optical disk:

Read syntax diagramSkip visual syntax diagram
>>-+-LIBRARY-+--+-EJECT-+-,volser-+-----------+-+----------+---><
   '-LI------'  '-E-----'         +-,LOCATION-+ +-,LIBRARY-+   
                                  '-,L--------' '-,LIB-----'   

The following describes the values of the options for the EJECT command:

volser
Specifies the volume serial number of one of the two optical volumes on the optical disk that is ejected.
LOCATION
Prompts the operator to specify the new shelf location information for the ejected optical disk volumes.
LIBRARY
Prompts the operator to specify a pseudo library name to which the ejected volume will be assigned.

To eject an optical disk from an optical library, enter the following command:

LI EJECT,volser,LOCATION,LIBRARY
An optical disk can arrive in the input/output station without an operator request in the following ways:

Tip: You can demount an optical disk on an operator-accessible drive by varying the drive offline.