DBGVIEW

Specifies which level of debugging is available for the created program object. It also specifies which source views are available for source-level debugging. Requesting a debug listing view will turn inlining off.
DBGVIEW Syntax
Read syntax diagramSkip visual syntax diagramDBGVIEW(*NONE*ALL*STMT*SOURCE*LIST)
The possible options are:
*NONE
Default setting. Disables all of the debug options for debugging the compiled object.
*ALL
Enables all of the debug options for debugging the compiled object and produces a source view, as well as a listing view. If this suboption is specified together with OPTION(*FULL) or OPTION(*EXPMAC), the compiler issues an error message and stops compilation.
*STMT
Allows the compiled object to be debugged using program statement numbers and symbolic identifiers.
Note: To debug an object using the *STMT option you need a spool file listing.
*SOURCE
Generates the source view for debugging the compiled object. The OPTION(*NOSHOWINC, *SHOWINC, *SHOWSYS, *SHOWUSR) determines the content of the source view that is created.
Note: The root source should not be modified, renamed or moved after the module has been created. It must be in the same library/file/member, in order to use this view for debugging.
*LIST
Generates the listing view for debugging the compiled object. The listing options (*EXPMAC, *NOEXPMAC, *SHOWINC, *SHOWUSR, *SHOWSYS, *NOSHOWINC, *SHOWSKP, *NOSHOWSKP) specified on the OPTION keyword determine the content of the listing view created, as well as the spool file listing. If this suboption is specified together with OPTION(*FULL) or OPTION(*EXPMAC), the compiler issues an error message and stops compilation.