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.
September 1, 2009 7:11 PM
May 14, 2010 2:48 AM