What time did my Job go in MSGW?

5 pts.
Tags:
AS/400
MSGW
MSGW status
My Job is in MSGW. I want to know at what time it went in MSGW? For Example- Lets say I submitted a Job at 4 PM and after running for half an hour it went to MSGW at 4:30. So I want to how programatically or by some command which returns me the time at which it went to MSGW i.e 4:30 for example. Thanks in advance!!!

Answer Wiki

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

If it goes into MSGW, it has sent a message to a message queue and is waiting for a reply. I’m assuming the message queue in QSYSOPR.
If you google for OPRMONE, you will find a program that you can download and setup so it will monitor QSYSOPR and send you a message.

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
  • philpl1jb
    if you work with job and dsplay the joblog. I would think you will find the message and F1 on that line on the log should show details. Phl
    49,540 pointsBadges:
    report
  • TomLiotta
    The Retrieve Job Information (QUSRJOBI) API can return the Active Job Status to tell you if a job is in MSGW status or not. You can then call the List Job Log Messages (QMHLJOBL) API to list the job's messages into a user space. Process the list from the user space to access details of each message including the timestamp. You can get some basic info about the message from the Retrieve Job Information (QUSRJOBI) API, but I can't think of any way to find the time without actually searching for the message itself. Tom
    125,585 pointsBadges:
    report
  • AJ9090
    [...] 8. The trio of TomLiotta, Philpl1jb, and CharlieBrown lead the way in showing how a job went into MSGW. [...]
    0 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