Change the write protection for image catalog entries for virtual optical

Use this information to change the access-mode for virtual optical media.

All image catalog entries include a write-protect switch, which functions identically to the write-protect switch on actual media. The initial position of this switch is on for read-only media and off for writable media. Virtual images in International Standards Organization (ISO) 9660 format are read-only while media in universal disk format (UDF) can be writable or read-only.

When you add a new image catalog entry to an image catalog, the image catalog entry is not write-protected by default. After you add an image catalog entry to an image catalog, you can change whether it is write-protected with the Change Image Catalog Entry (CHGIMGCLGE) command.

To change an image catalog entry to be write-protected, type the following command, where the image catalog name is MYCAT and the image catalog index is 3:

       CHGIMGCLGE IMGCLG(MYCAT) IMGCLGIDX(3) WRTPTC(*YES)

To change a write-protected image catalog entry's write-protection status to not write-protected, type the following command where the image catalog name is MYCAT and the image catalog index is 3:

       CHGIMGCLGE IMGCLG(MYCAT) IMGCLGIDX(3) WRTPTC(*NO)
Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.