How can I tell what is calling a program in AS/400

15 pts.
Tags:
AS/400
AS/400 commands
AS/400 programming
We have a 3rd party application on our system that hasn’t been updated in years. I can see about 18 programs within the 3rd party application library that are being used on a daily basis. Is there a way I can tell what is calling those programs?
ASKED: March 30, 2011  2:40 PM
UPDATED: April 1, 2011  3:42 PM

Answer Wiki

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

If you have some tools like HAWKEYE and the source, that would do it for you.
If you have source, you can do a FNDSTRPDM
If you have no source. it gets more difficult.
You can do DSPPGMREF *ALL to an output file and scan for the program names.
Another option is to rename the program object. Some job will crash and that will tell you where it is used. Then you can rename the program object back to what it was and give the failing program an ‘R’. Not the best method, but I guarentee results ;-)

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
  • Bresinaj
    [...] How can i tell what is calling a program - IT answers > AS/400 » AS/400 [...]
    0 pointsBadges:
    report
  • TomLiotta
    Best way may be through object auditing. If you have auditing enabled, run this command:
    CHGOBJAUD OBJ( <programname> ) OBJTYPE(*PGM) OBJAUD(*ALL)
    Later, display QAUDJRN journal entries with journal code T and entry type ZR. The journal entry will show what program called the audited program, what the job name was, when it happened, etc. Tom
    125,585 pointsBadges:
    report
  • Bresinaj
    Tom, Thank you for that response it was exactly what i was looking for. Not sure why i didn't think of that. Thank you all for your responses John
    15 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