Still at it, eh? I guess getting you Profiler access for the last 5 reports running on the mainframe isn’t near the top of your DBA/Natural admin’s priority list.
You said you were on Natural 8.2. There are links to documentation for Natural 8.2.4 - 8.2.7 here:
Pick the version closest to yours, since there were actually enhancements being made to the debugger during that time frame, although mostly to Display data commands, if I remember right. From the whole menu, pick Debugger on the upper right corner under Development Environment.
That takes you to the Debugger doc, like this for 8.2.4:
Top heading is the Tutorial. Sorry it’s old school, printed with examples, no YouTube. Only NatONE gets YouTube. ;-(
If you want to skip to the end of a loop and continue Stepping there, and screen printing I assume, then you can scroll down in the program listing and set a break point at the first line of code after the end of the loop. Then type GO and execution will continue until all loop iterations are complete and the debugger will stop again at your break point. You can continue single-stepping (PF2’ing) from there.
ESCAPE BOTTOM sort of does the same as GO, but you still need to set the break point to stop at after the loop. It doesn’t actually cause you to exit the Debugger, unless you have no break point to stop at. The other thing it does different is that it immediately exits the loop, without performing the normal number of iterations. Good if you are debugging an infinite loop, but otherwise you wouldn’t get the same calculation result as GO would.
ESCAPE ROUTINE works the same, immediately exiting the routine without finishing it, returning to the calling module.
Something else new since the old days that might prove useful is the STEP SKIPSUBLEVEL command. By itself it skips over a a call to an external subroutine or subprogram. The external routine gets executed, you just don’t have to step through it. I think this may default to PF5 or PF6…
Also helpful, STEP SKIPSUBLEVEL [n], where n is an execution level above your current level. Ie., you can return back up to a calling program without having to STEP all the way back. OBCHAIN shows you what level you are at and where you came from. Note that n would always be smaller than your current level. You can’t give a bigger number to go down further in the chain.
Hope that helps.