When the PL/I perspective switches to the debug perspective, the source file opdemo.pli should automatically display with the OPDEMO: PROC(JCLPARM) OPTIONS(MAIN) REORDER; line highlighted as the current line of execution.
on error begin;
ON ENDFILE (SYSIN)
OPDEMO, SYSIN FILE RECORD INPUT ENVIRONMENT(FB RECSIZE(80)); Refs=4.
SYSPRINT_BUFF = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' || /* 26 */
sysin_num_recs = '0';
This line initiates the SYSIN_NUM_RECS variable.
sysin_num_recs = sysin_num_recs + 1;
When the debugger reaches the END statement, you can see from the final value of SYSIN_NUM_RECS (0004) that the program has processed five records.