RPG ILE Debugging

Tags:
AS/400
RPG
How can I STRDBG for an interactive job that's already running executing an RPG ILE program. Program already compiled with #all debug view, but no way to predict when the production program is going to fail.
ASKED: November 14, 2005  12:24 PM
UPDATED: November 19, 2009  6:42 AM

Answer Wiki

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

You first start a trace (STRTRC) against the job, then you do the debug from there.

Discuss This Question: 2  Replies

 
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
  • TheQuigs
    You can use the command STRSRVJOB to start servicing the interactive job. Then you can do the STRDBG and all your debugging options will be available.
    0 pointsBadges:
    report
  • TomLiotta
    Can you clarify the situation? It's an interactive job that runs into a problem. The program has full debug info. You don't know what the problem will be before it happens, but you know it will happen. Do you have any idea what part of the program it will be in? Is there a statement that will be executed when the problem arrives? (Ideally, a statement that wouldn't normally be executed, maybe in a *PSSR?) Consider setting a Service Entry Point. Ideally, it would be through WDSC or RAD, but it can also be done green-screen if really necessary. If you can set a point that's at least close to predictable, you might be able to get the system to notify you and let you step in when needed. Tom
    125,585 pointsBadges:
    report

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