Command reference / prog

ADDPGM

Add Program

Adds a program to an existing debug session and can designate the default program for later debug commands.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

PGM Program

Sets one or more programs to be debugged. The number of programs specified here depends on how many programs are already being debugged; 20 is the maximum number of programs that can be debugged at the same time. You cannot debug two programs that have the same name at the same time.

Type
*QUAL
Required
Yes
List limit
20
Case
Uppercase
name (program)
Enter the name of the program to be debugged.
*LIBL
The library list is used to locate the program to debug.
*CURLIB
The current library for the job is used to locate the program to debug. If no library is specified as the current library for the job, the QGPL library is used.
name (library)
Enter the name of the library where the program is located.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Program Program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

DFTPGM Default program

Sets the program to use as the default program during debug mode. The program specified here is used as the default program for any of the other debug commands for which *DFTPGM was supplied for the Program (PGM) parameter. That is, if a default program was previously specified, this parameter can change it.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
Keep the current program currently specified as the default program, if any,.
*NONE
No program is specified as the default program; if a program was specified as a default program, it is no longer the default program.
name
Enter the name of the program to use as the default program during debug mode.

Examples

ADDPGM PGM(QGPL/MYPROG)

Adds the program MYPROG, located in the QGPL library, to the current debug mode. Breakpoints and traces can be put in MYPROG, and its variables can be displayed and changed by other debug commands.

IBM command documentation

Generated from os/cl/catalog/ADDPGM.json and os/cl/help/ADDPGM.json.