You can use virtual tape devices to save data 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 tape in your save environment. Virtual tape 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 virtual volumes within the image catalog to save the intended information, virtual tape will use the auto-generate feature to create additional virtual tape volumes.
Perform the following steps to save data to virtual tape media.
CRTDEVTAP 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(catalog-descritpion) TYPE(*TAP)
ADDIMGCLGE IMGCLG(catalog-name) FROMFILE(*NEW) TOFILE(VOL001) + IMGSIZ(10000) TEXT(text-description) ALCSTG(*IMGSIZ) VOLNAM(VOL001) VOLTYP(*SL) DENSITY(*VRT256K)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. The image size can be as small as 48MB or as large as 1,000,00MB. If you do not want to pre-allocate the storage you can use ALCSTG(*MIN) and the storage will only be allocated as it is used for the save.
LODIMGCLG IMGCLG(catalog-name) DEV(virtual-device-name) OPTION(*LOAD)
CHGATR OBJ('/Catalog-Path') ATR(*ALWSAV) VALUE(*NO)