Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Load or Unload Image Catalog (LODIMGCLG) command is used to associate an image catalog and its images to a virtual device. The status of the image catalog will be changed based on the value specified for the Option (OPTION) parameter as follows:
Only one image catalog can be associated with a virtual device. If the virtual device already has an image catalog associated with it, you can use OPTION(*UNLOAD) to unload the current image catalog.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
IMGCLG | Image catalog | Name | Required, Positional 1 |
DEV | Virtual device | Name | Required, Positional 2 |
OPTION | Option | *LOAD, *UNLOAD | Optional, Positional 3 |
WRTPTC | Write protect | *DFT, *ALL, *NONE | Optional |
Top |
Specifies the image catalog to be loaded or unloaded.
This is a required parameter.
Top |
Specify the device that the image catalog is to be loaded into or unloaded from.
This is a required parameter.
Top |
Specifies whether the image catalog is to be loaded or unloaded.
Top |
Specifies whether to write protect based on each catalog entry's assigned value or to force all catalog entries to be write protected when the image catalog is loaded. The write protect value for each catalog entry will be returned to its previous value when the image catalog is unloaded from the device.
This parameter is valid only when parameter OPTION(*LOAD) is specified. When parameter OPTION(*UNLOAD) is specified the WRTPTC parmeter is ignored.
The default write protect values for dependent and reference image catalogs are unique and are defined as follows:
The *NONE write protect values for dependent and reference image catalogs are unique and are defined as follows:
Top |
Example 1: Loading an Image Catalog
LODIMGCLG IMGCLG(MYCLG) DEV(OPTVRT01) OPTION(*LOAD)
This command loads image catalog MYCLG into device OPTVRT01. Write protection is set based on the current value for each catalog entry. This example assumes that MYCLG is not a dependent or reference catalog.
Example 2: Loading an Image Catalog as read-only
LODIMGCLG IMGCLG(MYCLG) DEV(OPTVRT01) OPTION(*LOAD) WRTPTC(*ALL)
This command loads image catalog MYCLG into device OPTVRT01. Write protection is set on for all catalog entries.
Example 3: Unloading an Image Catalog
LODIMGCLG IMGCLG(MYCLG) DEV(OPTVRT01) OPTION(*UNLOAD)
This command unloads image catalog MYCLG from device OPTVRT01.
Example 4: Loading a tape type Image Catalog
LODIMGCLG IMGCLG(MYCLG) DEV(TAPVRT01) OPTION(*LOAD)
This command loads image catalog MYCLG into device TAPVRT01.
Top |
*ESCAPE Messages
Top |