A listing view is similar to the source listing portion of the compile listing or spool file produced by the ILE COBOL compiler.
In order to debug an ILE COBOL module object using a listing view, use the *LIST or *ALL value on the DBGVIEW parameter for either the CRTCBLMOD or CRTBNDCBL commands when you create the module object or program object.
One way to create a listing view, is as follows:
CRTCBLMOD MODULE(MYLIB/xxxxxxxx) SRCFILE(MYLIB/QCBLLESRC) SRCMBR(xxxxxxxx) TEXT('CBL Program') DBGVIEW(*LIST)
When you generate the listing view by specifying DBGVIEW(*LIST) on the CRTCBLMOD or CRTBNDCBL commands, the size of the created module object is increased because of the listing view. The listing view provides all expansions (for example, COPY and REPLACE statements) made by the ILE COBOL compiler when it creates the module object or program object. The listing view exist independent of the source member. The source member can be changed or deleted without affecting the listing view.
If the source member contains multiple compilation units, the listing view will contain the source listings of all of the compilation units, even if only one of them will be debugged. However, any debug commands issued from the Display Module Source display will be applied only to the compilation unit that can be debugged.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.