According to the help on the STRISDB command this should also work for COBOL programs.
There is also a STRCBLDBG command available and there is a whole chapter in the COBOL/400 user’s guide.
You can use “STRDBG” interactively or “STRSRVJOB” and “STRDBG” for batch job. On CBL type program, when you compile them. Use “*LSTDBG” under the “Source listing options” (in add’l options) and you can use step by step debug and use “F11″ to view variable/fields and can change them too. You can set stopping point(s), view other modules/programs (using F14), view variables/fields in hex. All of this and other options can be found in the AS400 manuals.
Hope this helps!!
First compile your program with 14 option, then f4.
Change parameters: F10 vista de depuracion – *ALL (sorry, i don t know how is in English) authorization – *ALL, THEN INTRO.
Just write STRDBG LIB/ PROGRAM NAME.
Put a (punto de interrupcion) F6 , F10.
Here you have to call the program , something like this: CALL LIB/PROGRAM NAME.
Okay that s all!