You can use virtual optical media to save images directly to system disk units for convenience, flexibility, and in some cases improved performance. The following scenarios will give you some examples of ways that you can utilize virtual optical in your save environment. Virtual optical is beneficial for unattended saves because it eliminates media errors that could halt an unattended save. If you do not allocate enough space in the image catalog to save the intended information, virtual optical will use the autoload feature to create additional images with the same capacity as the last image you loaded, provided the disk storage is available. You must specify automatic load in the reply list, MSGID(OPT149F), to avoid receiving a message that interrupts the unattended save.
If you receive fixes on CD-ROM, you can install your fixes from an image catalog. To maintain a complete record of all of the fixes that you apply, you can save these virtual PTF images to media. Then, in a recovery situation, you can restore all of the cumulative PTF images and automatically install them from the image catalog.
Perform the following steps to save data to virtual optical media.
CRTDEVOPT DEVD(virtual-device-name)RSRCNAME(*VRT) ONLINE(*YES)+ TEXT(text-description)
VRYCFG CFGOBJ(virtual-device-name) CFGTYPE(*DEV) STATUS(*ON)
CRTIMGCLG IMGCLG(catalog-name) DIR(catalog-path) CRTDIR(*YES) + TEXT(image-description)
ADDIMGCLGE IMGCLG(catalog-name) FROMFILE(*NEW) TOFILE(file-name) + IMGSIZ(*DVD4700) TEXT(text-description)
ADDIMGCLGE IMGCLG(catalog-name) FROMFILE(*NEW) TOFILE(file-name) + IMGSIZ(*CD650) TEXT(catalog-descritpion)Repeat this step for the number of desired images. You should add the images in the same order as you plan to restore from them. The virtual images provide spanning capability, with sequence numbers continuing from one volume to the next.
LODIMGCLG IMGCLG(catalog-name) DEV(virtual-device-name) OPTION(*LOAD)
INZOPT NEWVOL(volume-name) DEV(virtual-device-name) TEXT('volume text')Repeat this step for the number of new images you want to initialize. Use the WRKIMGCLGE (Work with image catalog entries) command to select the image to be initialized or use the LODIMGCLGE (Load or unload image catalog entry) command to continue to the next volume to be initialized.
LODIMGCLGE IMGCLG(catelog-name) IMGCLGIDX(2) OPTION(*MOUNT)
LODIMGCLGE IMGCLG(catelog-name) IMGCLGIDX(1) OPTION(*MOUNT)When you have completed initializing the new volumes, leave the first entry in mounted status.
CHGATR OBJ('/MYINFO') ATR(*ALWSAV) VALUE(*NO)