Start COBOL Debug (STRCBLDBG)

This command activates the debugging code that is created when the WITH DEBUGGING MODE clause is used in a COBOL program. This command must be entered for each COBOL program to be debugged in the next COBOL run unit.

Parameters

Keyword Description Choices Notes
PGM Program Qualified object name Required, Positional 1
Qualifier 1: Program Name
Qualifier 2: Library Name, *LIBL, *CURLIB

Program (PGM)

Specifies the name of the compiled COBOL program and the library where it is located. This is a required parameter. The possible values are:

program-name
Specifies the name by which the compiled COBOL program is known.

The possible library values are:

*LIBL
The system searches the library list to find the library where the program is located.
*CURLIB
The current library is used. If you have not assigned a library as the current library, QGPL is used.
library-name
Enter the name of the library where the created program is stored.

Examples

Example 1: Activate the debugging code for a COBOL program

STRCBLDBG PGM(MYLIB/XMPLE1)

This command activates the debugging code that was created for the COBOL program XMPLE1 in library MYLIB.

Error messages

*ESCAPE Messages

LBE7018
Program &1 not found.
LBE7019
Library &1 not found.