How to tell why a program is failing in RPG

351850 pts.
Tags:
RPG
Is there a way that an RPG program can log what happens when a program call fails? I need to know if what I am running is failing due to an authority issue or because it could not find the program. How would I do this?

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: 3  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
    Usually you'd have the program send messages to the screen if it's interactive or to the joblog otherwise. Additional messages might be sent to a user's message queue to notify that a problem needs attention (or to a system message queue). Joblog messages possibly always should be sent simply to have consistency even when any primary messages are sent to a display screen or elsewhere. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb

    If it's being run interactive display the sessions job log (DSPJOBLOG)

    If it's run in batch, change the submit parameters ...

    SBMJOB CMD(CALL PGM(XYZ)) JOB(MYJOB) LOG(4 00 *SECLVL) LOGCLPGM(*YES)

    this will generate a job log for the job myjob with details on commands issued and responses from the system.

    50,840 pointsBadges:
    report
  • TomLiotta
    That's a better answer, Phil. I was reading it as a developer asking how a program can log its conditions rather than a user asking where to look to see if any conditions were logged. Since this is generally a developer's forum, it's tricky sometimes getting the right interpretation. -- 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