Delete Image Catalog (DLTIMGCLG)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Delete Image Catalog (DLTIMGCLG) command is used to delete an image catalog object (*IMGCLG) from library QUSRSYS and optionally delete the associated image files. The image files are located in the directory that was specified on the Create Image Catalog (CRTIMGCLG) command.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
IMGCLG Image catalog Name Required, Positional 1
KEEP Keep image files *YES, *NO Optional
DEPIMGCLG Dependent image catalogs *NODELETE, *DELETE Optional
Top

Image catalog (IMGCLG)

Specifies the image catalog to be deleted.

This is a required parameter.

Top

Keep image files (KEEP)

Specify whether the image files associated with the image catalog are to be kept.

*YES
Specify that the images associated with the image catalog will not be deleted.
*NO
Specify that the images associated with the image catalog will be deleted from the directory which contains the image files.
Top

Dependent image catalogs (DEPIMGCLG)

Specify whether to delete all dependent image catalogs.

*NODELETE
Specify that all dependent catalogs will not be deleted.
*DELETE
Specify that all dependent catalogs will be deleted.
Top

Examples

Example 1: Deleting an Image Catalog

DLTIMGCLG   IMGCLG(MYCLG)

This command deletes image catalog MYCLG from library QUSRSYS and leaves the associated image files.

Example 2: Deleting an Image Catalog with all Dependent Catalogs

DLTIMGCLG   IMGCLG(MYCLG) KEEP(*NO) DEPIMGCLG(*DELETE)

This command deletes image catalog MYCLG, all dependent catalogs, and all associated image files.

Example 3: Deleting an Image Catalog and the Associated Image Files

DLTIMGCLG   IMGCLG(MYCLG)  KEEP(*NO)

This command deletes image catalog MYCLG from library QUSRSYS and all associated image files.

Top

Error messages

*ESCAPE Messages

CPFBC18
Image catalog &1 not deleted.
CPFBC45
Image catalog &1 not found.
CPF2105
Object &1 in &2 type *&3 not found.
CPF2182
Not authorized to library &1.
CPF2189
Not authorized to object &1 in &2 type *&3.
Top