AS/400 HELP
"JOBQMON"
(JOBQ MONITOR)


JOBQMON
monitors a jobq to see if the number of jobs waiting to run matches or goes over the maximum (threshold)
to watch for. It then sends a break
message to the user selected to any screen he/she is signed on. A message goes to the system history log and
an e-mail or pager message can be sent.
JOBQMON sends one message per day. It resets the ‘message sent’ flag after
midnight.
JOBQMON was developed at V5r1.
Please read and understand all the
instructions below before installing JOBQMON.
PC INSTRUCTIONS:
Download "JOBQMON” to your PC.
Go to a DOS session and enter the following;
FTP SYSTEM (system = your AS/400’s
name or IP address)
Enter a valid user id and password
CD QGPL
LCD C:\DIRECTORY (directory= the directory on your pc where you downloaded
“ JOBQMON.savf”
QUOTE
SITE NAMEFMT 1
BIN
PUT
JOBQMON.SAVF
QUOTE RCMD
RSTLIB SAVLIB(JOBQMON) DEV(*SAVF) SAVF(QGPL/JOBQMON)
Note: If there is a security problem restoring all
objects with the command above, sign on
to your as/400 as Qsecofr and run RSTLIB
from the command line.
AS/400
INSTRUCTIONS:
INSTALL SECTION;
(1 time only after library JOBQMON is restored to the As/400)
ADDJOBQE
SBSD(QSYS/QBATCH) JOBQ(JOBQMON/JOBQMON) MAXACT(1) SEQNBR(NNN)
NNN = a unique
sequence number. Use the command:
DSPSBSD
SBSD(QSYS/QBATCH) and take option
6. Use a Seq Nbr not already allocated.
-------------------------------------------------------------------------------------
To set up the
run parameters;
Addlible JOBQMON
CALL JMDFU
page down to KEY
1 (I left defaults in the fields) Do not remove this record as JOBQMON looks
at this record only.
JOBQ
LIBRARY: enter an jobq and the library it’s in.
Make sure the library starts in column 11 of this field. To monitor all jobqs in this library enter *
in the first column. To monitor all jobqs starting with these characters enter
them and then a * eg: QBATCH*
will monitor QBATCH QBATCH1 QBATCH2
etc etc
FREQUENCY MINUTES: enter the frequency for JOBQMON to look
at the outq eg: 5 = every 5 minutes
STARTMON:
Date/time for JOBQMON to start looking at the outq
ENDMON: Date/time for JOBQMON to end
itself
THRESHOLD:
When the number of spool files reaches this amount send a message(s)
MSGSENT ‘Y’ a message(s) was sent.
JOBQMON flags this field but the user can set it to blank to get another message within the same day
DAYSET:
JOBQMON uses this field to test when a new day starts and then resets
MSGSENT TO blank
SENDLOGMSG: ‘Y’ = send a message to the history log (view with
DSPLOG)
SENDEMAIL:
‘Y’ = send an e-mail or pager message (JOBQMON uses SNDST via SMTP (our
system uses Microsoft Exchange)
SENDMSG:
‘Y’ = send a message to the user specified to every screen the user is
signed-on to. (API QMHSNDM)
USER: As per above
EMAILUSER:
E-MAIL address or pager number
----------------------------------------------------------------------------------------------
To start JOBQMON;
CALL STARTJM
Use wrkactjob to
verify JOBQMON is running under QBATCH