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
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
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