ILE COBOL Programmer's Guide

Using a Statement View

A statement view does not contain source statements. It contains line numbers and statement numbers. To debug an ILE COBOL module object using a statement view, you need a hard copy of the compiler listing.

Note:
No source code is shown in the Display Module Source display when a statement view is used to debug an ILE COBOL module object.

To debug an ILE COBOL module object using a statement view, use the *STMT, *SOURCE, *LIST or *ALL value on the DBGVIEW parameter for either the CRTCBLMOD or CRTBNDCBL commands when you create the module.

One way to create a statement view, is as follows:

CRTCBLMOD MODULE(MYLIB/xxxxxxxx)
SRCFILE(MYLIB/QCBLLESRC) SRCMBR(xxxxxxxx)
TEXT('CBL Program') DBGVIEW(*STMT)

When you generate the statement view by specifying DBGVIEW(*STMT) on the CRTCBLMOD or CRTBNDCBL commands, the size of the created module object is increased minimally because of the statement view. The size of the created module object is smaller than that generated with the listing view or the source view. The statement view minimizes the size of the created module object while still allowing some form of debugging. The statement view only provides the symbol table and a mapping between statement numbers and debug line numbers.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]