PowerCOBOL creates internal sub-programs around code that you write to handle events. This is not visible to you within PowerCOBOL. However, when using the COBOL Debugger, you see all the code for these internal programs. Internal programs start with the code:
IDENTIFICATION DIVISION PROGRAM-ID. "PROGRAM-NAME".
and end with the code:
END PROGRAM "PROGRAM-NAME".
"PROGRAM-NAME" usually has the structure:
item-event
e.g. "EDIT1-CHANGE", "EDIT1-RETURN", "PUSH1-CLICK".
The COBOL Debugger displays all the internal subprograms in a single source file. Thus the COBOL Debugger lets you browse, search and set breakpoints in the entire PowerCOBOL source code for your sheet.