Analyze Programs (ANZPGM)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Analyze Programs (ANZPGM) command produces a report that shows the programs and files in a set of libraries and the relationships between them. Both reports are written to the printer file QPPTANZP. Two printer files are produced with the same name. One printer file contains Program-to-File cross reference information. The other printer file contains File-to-Program cross reference information.

Top

Parameters

Keyword Description Choices Notes
LIBL Application libraries Values (up to 10 repetitions): Name Required, Positional 1
JOB Job name Name, ANZPGM Optional
JOBD Job description Single values: *NONE
Other values: Qualified object name
Optional
Qualifier 1: Job description Name, QPFRJOBD
Qualifier 2: Library Name, *LIBL, *CURLIB
Top

Application libraries (LIBL)

Specifies the libraries that contain the programs on which to report.

This is a required parameter.

You can enter multiple values for this parameter.

library-name
Specify up to 10 library names to be included in the Analyze Program report.
Top

Job name (JOB)

Specifies the job name to be used if submitting the job for batch processing.

Any value for this parameter is ignored if *NONE is specified for the Job description prompt (JOBD parameter).

Note: If *NONE is specified for the Job description prompt (JOBD parameter), job processing is performed interactively.

The possible job name values are:

ANZPGM
The command name is used for the job name.
job-name
Specify the name to be used for any and all batch jobs.
Top

Batch job description (JOBD)

Specifies the job description used to submit the job for batch processing.

The possible job description values are:

QPFRJOBD
The IBM-supplied job description, QPFRJOBD, is used.
job-description-name
Specify the name of an alternate job description.
*NONE
A batch job is not submitted; processing continues interactively while the user waits. The user's workstation is not available for other use during this time, which could be significant for long jobs.

The possible library values are:

*LIBL
All libraries in the job's library list are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the job description. If no current library entry exists in the library list, QGPL is used.
library-name
Specify the library in which the job description is located.
Top

Examples

ANZPGM   LIBL(APPGM ARPGM)

This command produces reports showing the program and file relationships for all programs in the Accounts Payable (APPGM) and Accounts Receivable (ARPGM) program libraries.

Top

Error messages

*ESCAPE Messages

CPF9801
Object &2 in library &3 not found.
CPF9802
Not authorized to object &2 in &3.
PFR9802
Unexpected message monitored.
Top