Loading a CD-ROM or DVD media into a drive causes the system to read the media to retrieve the volume identifier.
The system stores this volume identifier in an optical index database file to expedite future access to the media. After the volume identifier is in the optical index, you can access the media through save and restore options, as well as the application programming interfaces. Unloading the media from the drive removes the volume identifier from the optical index. The system adds the volume identifier to the optical index database in one of two ways:
Additional processing could take several seconds after the tray slides in before the CD-ROM or DVD is usable. This is true for varying on as well. Even if the vary-on operation completes successfully, the CD-ROM or DVD is not usable until the system reads and stores the media information in the optical index. This may take several seconds after the vary-on operation is completed.
Volume VOLID01 added to optical device.
Volume VOLID01 removed from optical device.
You can use the Work with Optical Volumes (WRKOPTVOL) command to verify the successful adding or removing of the CD-ROM or DVD.
You can also use the Display Optical (DSPOPT) command to display optical volume information.
Occasionally media may fail to load successfully into the drive. Some of the possible causes for an unsuccessful load are listed below.
Optical volume format not recognized.
Optical volume not found.
If an error does occur when loading media or varying on the drive, the system signals an error message to the QSYSOPR message queue. This message describes the reason for the failure.
The processing for the load, unload, and vary-on operations runs in job QJOBSCD. If errors occur during these operations, view the job log of QJOBSCD to see the detailed messages.