QSPRJOBQ API Data Structure values

132650 pts.
Tags:
API's - AS400
As400-Jobq
JOBQ
I'm trying to use this API (QSPRJOBQ) . I have a CL version and an RPGLE version. They are close but not quite what I need. With the CL I can see I have 19 jobs in my JOBQ. They are all scheduled held. My question is when using the RPGLE version I can get the number of jobs in the JOBQ but when I want to filter out the jobs on schedule hold I have to get that value from DS  QSPJOQP500. Why QSPJOQP500 and not any of the others QSPJOQP100 - QSPJOQP900? I cannot find anything online. If I do a calc to subtract the scheduled from the total will this always be correct? Can the number of those on schedule hold change it's location?


Software/Hardware used:
CLLE, RPGLE, V7R3M0
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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.
  • Splat
    Are you certain about your receiver variable format?  Looking at the documentation (I'm assuming you're at v7r3) the JOBQ0200 format seems to have the information you're looking for.
    12,875 pointsBadges:
    report
  • ToddN2000
    @Splat: Took forever poking around. Not a lot of good info out there that I could find just googling the API .Most pointed to much older releases like V5 and not very good..I have the API working and was debugging it see all the values. Saw in the scheduled section I was getting values. I figured these come from jobs users submit with a delay to run after business hours. The reason I was only getting values in QSPJOQP500 is that value is for jobs with a schedule priority of a 5. It looks like each of the 9 values for scheduled jobs has it's on parameter value. Thanks for passing that link along, I've got it bookmarked now. 
    132,650 pointsBadges:
    report
  • Splat
    @ToddN2000, glad to help.
    12,875 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.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: