Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Image Catalog Entry (ADDIMGCLGE) command is used to create a virtual image in the image catalog directory (as specified by the Directory (DIR) parameter on the CRTIMGCLG command). If the image is added successfully, the image will be loaded and the image catalog (*IMGCLG) in library QUSRSYS will be updated. Images can be added from the following sources:
If an image catalog entry exists with the same index as specified for the Image catalog index (IMGCLGIDX) parameter, one of the following will occur:
If the image does not exist in the target directory, the image is copied and the image catalog is updated with information about this image.
Restrictions:
If any of the above parameters are specified for an optical type image catalog, they will be ignored.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
IMGCLG | Image catalog | Name | Required, Positional 1 |
FROMDEV | From optical device, or | Name | Optional |
FROMFILE | From image file | Path name, *NEW | Optional |
TOFILE | To image file | Character value, *GEN, *FROMFILE | Optional |
IMGCLGIDX | Image catalog index | 1-256, *AVAIL | Optional |
REPLACE | Replace catalog entry | *NO, *YES, *INSERT | Optional |
IMGSIZ | Image size | 48-1000000, *IMGCLGTYPE, *CD650, *DVD2600, *DVD4700 | Optional |
TEXT | Text 'description' | Character value, *GEN, *BLANK | Optional |
ALCSTG | Allocate storage size | *MIN, *IMGSIZ | Optional |
VOLNAM | Tape volume name | Character value, *GEN | Optional |
VOLTYP | Volume type | *SL, *NL | Optional |
DENSITY | Tape density | *VRT256K, *VRT240K, *VRT64K, *VRT32K | Optional |
NEWOWNID | New owner identifier | Character value, *BLANK | Optional |
CODE | Code | *EBCDIC, *ASCII | Optional |
Top |
Specifies the image catalog that the new entry is to be added to.
This is a required parameter.
Top |
Specifies the CD or DVD device from which the optical image is to be copied. For optical type image catalogs, a value must be specified for either the FROMDEV or FROMFILE parameter to identify the optical image file to be copied to the image catalog directory. For tape type image catalogs, the FROMDEV parameter is not allowed.
Top |
Specifies the image file to be copied. For optical type image catalogs, a value must be specified for either the FROMDEV or FROMFILE parameter to identify the optical image file to be copied to the image catalog directory. For tape type image catalogs, a value must be specified on the FROMFILE parameter to identify the tape image file to be copied to the image catalog directory.
Top |
Specifies the name given to the file that will be copied to the target directory.
Top |
Specifies the image catalog index to be assigned to the image being added.
Top |
Specifies the action to take if a catalog entry with the same index number as specified on the IMGCLGIDX parameter already exists in the image catalog.
Top |
Specifies the size of the new image file that is to be created.
For optical type image catalogs, this parameter indicates the size of the optical image file that is to be created and the amount of system storage to be allocated.
For tape type image catalogs, this parameter indicates the maximum size allowed for this tape image file. If ALCSTG(*MIN) is specified, only the amount of storage required to initialize the image file will be allocated. If ALCSTG(*IMGSIZ) is specified, the amount of storage allocated will be the value specified on the IMGSIZ parameter.
For optical image catalogs, the size of the image file created will be 650 MB. Optical images created with this size can be written to any standard 650 MB media.
For tape type image catalogs, the maximum size of the image file created will be set to 1 gigabyte.
Top |
Specifies the text that briefly describes the image being loaded.
Top |
Specifies for tape image files, whether to allocate the entire amount of storage specified on the Image size (IMGSIZ) parameter.
Top |
Specifies the volume name for this virtual tape volume.
Top |
Specifies the type of volume for this virtual tape volume.
Top |
Specifies the density for this virtual tape volume.
Top |
Specifies the identifier of the tape owner for this virtual tape volume. This parameter is only used for a volume type of *SL.
Top |
Specifies the character code in which the volume label is written. All data that is not save data written after the label must be in the same code. Codes cannot be intermixed on a tape that is not a save tape. This parameter is only used for a volume type of *SL.
Top |
Example 1: Adding an Image Catalog Entry from CD/DVD Media
ADDIMGCLGE IMGCLG(MYCLG) FROMDEV(OPT01)
This command adds the optical image in device OPT01 to the image catalog directory and updates catalog MYCLG. The image catalog directory is the directory specified for the Directory (DIR) parameter of the CRTIMGCLG command.
Example 2: Adding an Image Catalog Entry from a Directory
ADDIMGCLGE IMGCLG(MYCLG) FROMFILE('/MyDir/MyFile.img')
This command adds the image file /MyDir/Myfile.img to the image catalog directory /MyNewDir and updates catalog MYCLG. The image catalog directory is the directory specified for the Directory (DIR) parameter of the CRTIMGCLG command.
Example 3: Inserting an Image Catalog Entry
ADDIMGCLGE IMGCLG(MYCLG) FROMDEV(OPT01) REPLACE(*INSERT)
This command adds the optical image in device OPT01 to the image catalog directory and, if a catalog entry exists at the specified index, will insert the entry in the catalog and increment the remaining entries up to the next available index. The image catalog directory is the directory specified for the Directory (DIR) parameter of the CRTIMGCLG command.
Example 4: Adding a New Optical Type Image Catalog Entry
ADDIMGCLGE IMGCLG(MYCLG) FROMFILE(*NEW) TOFILE(MYFILE) IMGSIZ(*CD650)
This command adds new optical image file MYFILE to the image catalog directory with a size of 650 megabytes. The image catalog directory is the directory specified for the Directory (DIR) parameter of the CRTIMGCLG command.
Example 5: Adding a New Tape Type Image Catalog Entry
ADDIMGCLGE IMGCLG(TAPECLG) FROMFILE(*NEW) TOFILE(TAP001) IMGSIZ(*IMGCLGTYPE) ALCSTG(*MIN) VOLNAM(MYVOL) VOLTYP(*SL) DENSITY(*VRT256K) NEWOWNID(MYNAME) CODE(*EBCDIC)
This command adds new image file TAP001 with a volume name of MYVOL to the target directory with the default maximum allowed size of 1000 megabytes. Only storage required to create and initialize the virtual volume will be allocated at the time of the create. The target directory is the directory specified for the Directory (DIR) parameter of the CRTIMGCLG command.
Example 6: Adding a New Tape Type Image Catalog Entry with Allocation.
ADDIMGCLGE IMGCLG(TAPECLG) FROMFILE(*NEW) TOFILE(TAP002) IMGSIZ(5000) ALCSTG(*IMGSIZ)
This command adds new image file TAP002 to the target directory with a maximum size of 5000 megabytes. All 5000 megabytes of storage will be allocated for this image file when it is created. The target directory is the directory specified for the Directory (DIR) parameter of the CRTIMGCLG command.
Example 7: Adding an Image Catalog Entry from the Image Catalog Directory
ADDIMGCLGE IMGCLG(MYCLG) FROMFILE('/MyClgDir/MyFile.img') TOFILE(*FROMFILE)
This command updates the image catalog MYCLG with information about image file MyFile.img.
Top |
*ESCAPE Messages
Top |