CL Command Reference - PKGPRDDST
CL Command List > PKGPRDDST Reference
Description:
The Package Product for Distribution (PKGPRDDST) command saves a copy of the objects that make up a product into a save file so the product can be distributed electronically. A distribution catalog entry is created for the product, and the packaged product is loaded into the distribution repository.
Restrictions:
1. This command is shipped with public *EXCLUDE authority.
2. You must have the authority necessary to perform the Save Licensed Program (SAVLICPGM) command on the product to be packaged to run this command.
3. This command has the same restrictions as the SAVLICPGM command.
Examples:
Example 1: Package the Base Option for Distribution
PKGPRDDST PRDID(5722PT1) OPTION(*BASE)
This command saves the BASE option of the Performance Tools licensed program for both the code and language parts. It then creates the following distribution catalog entry and stores the saved product into the distribution repository:
I3IBM1 AS400 5722PT1 V5R2M0 BASE ALL ALL REF 001 V5R2M0
Example 2: Package the Program Objects
PKGPRDDST PRDID(ACCOUNT) RLS(V5R2M0) LODTYPE(*CODE) LODID(*CODE)
This command packages the V5R2M0 ACCOUNT product for distribution and saves only the program objects for the product. The command also creates the following distribution catalog entry and stores the saved product into the distribution repository:
I3IBM1 AS400 ACCOUNT V5R2M0 BASE CODE CODE REF 001 V5R2M0
Example 3: Package the Language Objects
PKGPRDDST PRDID(ACCOUNT) LODTYPE(*LNG) LODID(2924)
This command packages the English version of the ACCOUNT product for distribution and creates the following distribution catalog entry and stores the saved product into the distribution repository:
I3IBM1 AS400 ACCOUNT V5R2M0 BASE LNG 2924 REF 001 V5R2M0
Example 4: Package the Product for Distribution
PKGPRDDST PRDID(BILLS01) SAVF(*LIBL/BILLSAVF)
This command packages the V5R2M0 BILLS01 product for distribution for both the code and language parts. The product is not saved because the save file containing the product was specified. This command also creates the following distribution catalog entry and stores the saved product into the distribution repository:
I3IBM1 AS400 ACCOUNT V5R2M0 BASE ALL ALL REF 001 V5R2M0