When we submit a job on an Iseries to a job queue, it gets submitted with a command string. I have a process where I am using APIs to go out and get information on jobs that are on our job queues that are waiting to run. The APIs that I use work great but they do not show me the command string that is associated to a job. After I get the job info I have to do a DSPJOB JOB(&NUMBER/&USER/&JOBNAME) OUTPUT(*PRINT) + OPTION(*JOBLOG) Then I copy it to a spool file and read that file for the command string info. This is time consuming because we get thousands of jobs submitted. Does any one know of a better and or quicker way of doing this? I looked in the Retrieve Call Stack (QWVRCSTK) API but it does not give me the detail the I need. Any help at all is very much appreciated.
Software/Hardware used:
ASKED:
September 1, 2009 7:11 PM
UPDATED:
May 14, 2010 2:48 AM
I’d go the simple route, and have each submitter write its command string to a file, which you could then use to generate some metrics, and even update at end of job with CPU seconds used etc..