CL Command Reference - CHGIMGCLGE

CL Command List > CHGIMGCLGE Reference

Description:

The Change Image Catalog Entry (CHGIMGCLGE) command is used to change the attributes of an image catalog entry.

Restrictions:

. This command is shipped with public *EXCLUDE authority.

. The following authorities are required to change an image catalog entry:
1. Execute (*EXECUTE) authority to library QUSRSYS.
2. *CHANGE authority to the image catalog.
3. Execute (*X) authority to each directory in the image catalog path name.
4. *USE authority to the virtual device description.

. The following parameters are only supported for tape type image catalogs:
1. Image catalog volume (VOL)
2. Image size (IMGSIZ)


Examples:

Example 1: Changing the Catalog Index Number

CHGIMGCLGE IMGCLG(MYCLG) IMGCLGIDX(5) NEWCLGIDX(2)

This command changes the index number associated with the selected image catalog entry from 5 to 2.



Example 2: Changing the Catalog Entry Text

CHGIMGCLGE IMGCLG(MYCLG) IMGCLGIDX(5) TEXT(¡¯MyText¡¯)

This command changes the text associated with image catalog entry 5 to MyText.



Example 3: Changing the Catalog Entry Write Protection

CHGIMGCLGE IMGCLG(MYCLG) IMGCLGIDX(5) WRTPTC(*YES)

This command write protects the image file associated with image catalog entry 5.



Example 4: Changing the Maximum Size for a Tape Image File

CHGIMGCLGE IMGCLG(TAPECLG) IMGCLGIDX(*VOL) VOL(VOL002)
IMGSIZ(10000) ALCSTG(*IMGSIZ)

This command will change the maximum allowed size of image file VOL002 to be 10000 megabytes and allocate the 10000 megabytes of storage.