5 pts.
 Job in MSGW
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 commad which returns me the time at which it went to MSGW i.e 4:30 for example. Thanks in advance!!!

Software/Hardware used:
ASKED: January 27, 2012  3:05 PM
UPDATED: March 17, 2012  5:20 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  January 27, 2012  4:48 pm  by  CharlieBrowne   32,785 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 44,060 pts.

 

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

 107,675 pts.