Fortunately there is a system API which allows you to add all images at once. Folow this easy steps to create your image catalog with this API:
Upload the images either with FTP, Netserver or download them with "SNDPTFORD" to an IFS directory.
Create your image catalog with "CRTIMGCLG". Set the parameters "Create directory" to "*No" and the "Directory" to the directory which contains the uploaded images.
Call the API "QVOIFIMG" with your image catalog name as the first parameter and '*ALL' as the second one. The third parameter is empty, because it is only a placeholder where the API will store a possible error message. This error message can only be used when you call the API from a CL PGM.
If everything works you will see some progress messages.
After all images are added to yout catalog you can associate your image catalog with your virtual optical device with "LODIMGCLG" Fill in the correct name of the catalog and your virtual device. If you do not have an virtual optical device you can create one with "CRTDEVOPT"
It is strongly recommended to verify and sort your image catalog with "VFYIMGCLG" before you use it to upgrade your system, or install PTF's from it. Please choose the correct Verify type whether you want to do an upgrade or a PTF install.
After that your image catalog is ready to make an upgrade, or a PTF install.
If you like this tutorial, please share it on your favorite social network.
27 files added with one command, thanks for the tips Ralf.
ReplyDelete