search cancel

History status of Promotion packages in Package exits.


Article ID: 20015


Updated On:


Bind Analyzer for DB2 for z/OS SQL-Ease for DB2 for z/OS SYSVIEW Performance Management Option for DB2 for z/OS Plan Analyzer for DB2 for z/OS Subsystem Analyzer for DB2 for z/OS PanAudit Plus Easytrieve Report Generator PAN/SQL Endevor Software Change Manager (SCM) Endevor Software Change Manager - Natural Integration (SCM) Endevor Software Change Manager - ECLIPSE Plugin (SCM) Endevor Software Change Manager - Enterprise Workbench (SCM) CA 2E



It might be necessary due to site specific requirements to check in a C1UEXT07 whether History exists of a Promotion Package. This knowledge document supplies you with some information about how to accomplish this.


If one wants to know in an EXIT07 if other versions of this PKG have existed , the following fields are available in the $PHDRDS :

PHDRPROM:     Is set to 'Y' if a Promotion Package
PHDRPPKGID:   Contains the generated  name of the copy of the previously executed package. 
              Contains Blanks if there was no Previous version ( history).

Contains Blanks if there was no Previous version ( history).

The corresponding fields in COBOL are:


So a straightforward check on PHDRPPKGID would suffice to know if the Promotion Package has History. If it is necessary to implement logic to obtain more info about the iterations of a Promotion Package, one can use the API List Package Header function. This API function will return the historical versions when ALPKG_RQ_PROMHIST is set.


Release: ENDAE.00200-15.1-Endevor-Software Change Manager