Fill Image Catalog (QVOIFIMG) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Fill Image Catalog (QVOIFIMG) API finds multiple files within an image catalog directory and adds them to the specified image catalog.

The specified image catalog needs to be empty. If an image catalog is specified that is not empty, any image catalog index entries that exist in the catalog will be removed before adding the files found within the image catalog directory. Note that the file itself will not be deleted, just the index in the catalog.

As an image catalog can only contain 256 image catalog entries, only the first 256 files found that match the criteria will be added to the image catalog.

A typical use of the QVOIFIMG API follows:


Authorities and Locks

Image Catalog Authority
*CHANGE
QUSRSYS Authority
*EXECUTE
Image Catalog Lock
*EXCLRD
Image Catalog Directory Path Prefix
Execute (*X)
Image File Parent Directory
Read (*R)
Execute (*X)
Image Catalog Directory Files
Read (*R)
Object management (*OBJMGT)

Required Parameter Group

Image catalog name
INPUT; CHAR(10)

The image catalog name.

Type of files to add
INPUT; CHAR(10)

Specifies which files found within the image catalog directory should be added to the specified image catalog.

The valid values are:

*ISO
Specifies that files that have an extension of .iso will get added to the specified image catalog.

A value of *ISO will only work with an optical image catalog. If a value of *ISO is specified along with a tape image catalog, the catalog will not be changed.

Start of change*BIN
Specifies that files that have an extension of .bin will get added to the specified image catalog.
*ALL
Specifies that all files found in the image catalog directory will be added to the image catalog.

For tape image catalogs, only valid tape image files will be added to the catalog.

For optical image catalogs, tape image files will not be added to the catalog.

End of change
Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: IBM® i 7.1 with PTF

[ Back to top | Object APIs | APIs by category ]