ILE COBOL Programmer's Guide


Viewing the Program Source

The Display Module Source display shows the source of an ILE program object or service program, one module object at a time. A module object's source can be shown if you created the module object with debug data, using one of the following debug view options:

The source of an OPM program can be shown if the following conditions are met:

  1. The OPM program was compiled with OPTION(*LSTDBG) or OPTION(*SRCDBG). (Only RPG and COBOL programs can be compiled with *LSTDBG.)
  2. The ILE debug environment is set to accept OPM programs; that is, the value of OPMSRC is *YES. (The system default is OPMSRC(*NO).)

There are two methods to change what is shown on the Display Module Source display:

The ILE source debugger remembers the last position in which the module object is displayed and displays it in the same position when a module object is re-displayed. Lines numbers that have breakpoints set are highlighted. When a breakpoint, step, or message causes the program to stop and the display to be shown, the source line where the event occurred will be highlighted.


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