COBOL Debug

10 pts.
Tags:
COBOL
COBOL debugging
Debugging
Can d COBOL program be debugged like RPG and if so how do I do it. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

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.

<a href=”http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/rzase/sc092540131.htm”>ILE COBOL/400 </a>

<a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books/c0918120.pdf”>OPM COBOL/400</a> – See chapter 5.

Regards,

Martin Gilbert.

Hi,

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!!

Michael Dratwa

=====================================
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.
oK that s all !

Sylvana.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following