The following figure is an overview of the steps required to create a product. An
explanation is given of the numbers in Figure A-2. The same numbers also appear
in the code.
RV3W218-1
Product
Build
Application
Product
Definition
Packaged
Product
Product
Load
Product
Objects
Figure A-2. Steps for Creating a Software Product
1 Create a product definition with information about the licensed program, such
as ID, version, and release.
2 Create a product load, which further defines each option of a licensed
program, such as the libraries, folders, and exit programs that comprise the
product.
3 Identify all objects associated with the product by changing the product ID,
release level, product option, and load ID in the object description by using
the Change Object Description API.
4 Package the product. Verify and store a list of all objects marked for this
product in the product load object.
5 Use the Save Licensed Program (SAVLICPGM) command to save the product
to tape.
CL Program for Creating Objects and Library for Packaging a
Product
The following CL program creates objects 1 through 11 and 15 in Figure A-1 on
page A-1.
PGM
/ᑍ Delete library and start from scratch ᑍ/
DLTLIB ABC
/ᑍ MRM Objects ᑍ/
CRTLIB ABC
CRTCLPGM ABC/ABCPGMMRM1 ABCDEV/QCLSRC +
TEXT('MRM Preprocessing Program')
CRTCLPGM ABC/ABCPGMMRM2 ABCDEV/QCLSRC +
TEXT('MRM Postprocessing Program')
CRTCLPGM ABC/ABCPGM ABCDEV/QCLSRC +
TEXT('CPP for ABC command')
/ᑍ MRI Objects ᑍ/
CRTCLPGM ABC/ABCPGMMRI1 ABCDEV/QCLSRC +
TEXT('MRI Preprocessing Program')
CRTCLPGM ABC/ABCPGMMRI2 ABCDEV/QCLSRC +
TEXT('MRI Postprocessing Program')
CRTSRCPF ABC/QCLSRC TEXT('Source Physical File for ABC Product')
A-2 System API Programming V4R1