Debugging in AS/400

555 pts.
Tags:
AS/400
COBOL/400
Hi Group, Could anyone please explain me the steps that are involved in Debugging a Job that is Active in Production Environment. Regards, MVRK

Software/Hardware used:
AS/400, COBOL/400

Answer Wiki

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

Discuss This Question: 4  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
  • TomLiotta
    Which steps do you want? There are at least four different procedures that I can think of. What OS version is on your server? And is the job running ILE or OPM programming? -- Tom
    125,585 pointsBadges:
    report
  • mvrkrishna
    Hi Tom, We are using V5R4 OS. And the program is a OPM. Regards, MVRK
    555 pointsBadges:
    report
  • TomLiotta
    I can't recall the last time I debugged an OPM program in batch, and I don't think I've ever started debug on an active batch OPM program. I only recall letting the job start after setting up for it. Maybe that's because I haven't done OPM programming in the past 15 years or so. If I had to, my first step would be to recompile for ILE. Nobody else has responded yet; but if anyone else knows how to start debug on an active OPM program, they can add more useful comments than I can give. The system debugger can handle OPM programs; but I just haven't run across getting into an active one. ILE has the Service Entry Point capability, and OPM just doesn't have enough info to create one. I'm not sure which steps you want, so I'll give a basic series that I ran through the last time I ran a debug over a running batch job. It might help show why recompiling for ILE can be useful. First, I started the debug manager on my workstation, and then I ran STRDBG in an emulator session. (see http://www.ibm.com/developerworks/ibmi/library/i-debug/index.html ) I named the program to debug on the STRDBG command. When the debug window opened on my workstation, I clicked the source line that I wanted to set with a breakpoint. I set the break property to be a Service Entry Point. A few seconds later, the active batch job reached that instruction. A window opened on my workstation asking if I wanted to debug that job, and I clicked the 'Yes' button. A second debug window opened showing the source of the program and the breakpoint line highlighted. I selected a variable that I wanted to 'Watch' and added it as a monitored variable. Then I clicked 'Resume' and let the job cycle through. The functions that I clicked from there depended on what I wanted at the time. Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    I never debugged an active job as well. I have always compiled the job with the debug view set to *SOURCE. Then followed what Tom mentioned. Start a debug session then start the program. You can use either STRDBG or STRISDB depending on how you want to debug the program. My only concern is debugging an OPM program is a possibility the object was created with out the ability to run debug ?
    11,820 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