h
/copy QSYSINC/QRPGLESRC,QSPRJOBQ
/copy qsysinc/qrpglesrc,qusec
* Thanks Bruce V.
D FormatName S 8 inz('JOBQ0100')
D Jobq s 10
D JobqLib s 20 Inz(' *LIBL ')
D Library s 10
D ReceiveLen S 10i 0 Inz(144)

c *entry Plist
c Parm Jobq
c Parm Library
c movel Jobq JobqLib
c If %parms > 1
c move Library JobqLib
c endif

* Call the api to get the information you want
C Call 'QSPRJOBQ'
C Parm QspQ010000
C Parm ReceiveLen
C Parm FormatName
C Parm JobQLib
C Parm QusEc

* Process the data from the API

* Number of jobs in jobq
c QSpNbrJ dsply
* Subsytems jobq is attached to
c QSpSN dsply

c Eval *inlr = *on


Jim Oberholtzer wrote on 3/31/2016 9:30 AM:
OR: just call the QSPRJOBQ api using the JOBQ0100 format? The number of
jobs on the queue is right there.

--
Jim Oberholtzer
Agile Technology Architects


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Michael Schutte
Sent: Thursday, March 31, 2016 7:27 AM
To: Midrange Systems Technical Discussion
Subject: Re: Alert if job queue backup

CL program.

CHKOBJ OBJ(QTEMP/JOBQLIST) OBJTYPE(*FILE) MONMSG CPF9801 DO CRTPF
FILE(QTEMP/JOBQLIST) RCDLEN(132) ENDDO CLRPFM QTEMP/JOBQLIST

WRKJOBQ OUTPUT(*PRINT)
CPYSPLF FILE(QPRTSPLQ)
TOFILE(QTEMP/JOBQLIST)
SPLNBR(*LAST)
CRTDATE(*LAST)


Then call a program to read the file. You would have to use substring
functions or use a data structure to break up the field from JOBQLIST.


On Thu, Mar 31, 2016 at 7:43 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:

HI is there a way to get an alert if a job queue has a bunch of jobs
waiting?
In our system this could indicate an issue.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.