AS/400 HELP
"SPOOLMON"
(OUTQ MONITOR)

ll
(see line 5 above)

SPOOLMON
monitors an outq to see if the number of unprinted spool files 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.
SPOOLMON sends one message per day. It resets the message sent flag after
midnight.
SPOOLMON was developed at V5r1.
Please read and understand all the
instructions below before installing SPOOLMON.
PC INSTRUCTIONS:
Download "SPOOLMON” 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 “ spoolmon.savf”
QUOTE
SITE NAMEFMT 1
BIN
PUT
SPOOLMON.SAVF
QUOTE RCMD
RSTLIB SAVLIB(SPOOLMON) DEV(*SAVF) SAVF(QGPL/SPOOLMON)
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 SPOOLMON is restored to the As/400)
ADDJOBQE
SBSD(QSYS/QBATCH) JOBQ(SPOOLMON/SPOOLMON) 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 SPOOLMON
smdfu
page down to KEY
1 (I left defaults in the fields) Do not remove this record as SPOOLMON looks
at this record only.
OUTQ
LIBRARY: enter an outq and the library its in.
Make sure the library starts in column 11 of this field.
FREQUENCY MINUTES: enter the frequency for spoolmon to look
at the outq eg: 5 = every 5 minutes
STARTMON:
Date/time for spoolmon to start looking at the outq
ENDMON: Date/time for spoolmon to end
itself
THRESHOLD: When the number of spool files
reaches this amount send a message(s)
MSGSENT ‘Y’ a message(s) was sent.
SPOOLMON flags this field but the user can set to blank to get another message within the same day
DAYSET:
Spoolmon 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 (spoolmon 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 SPOOLMON;
CALL STARTSM
Use wrkactjob to
verify SPOOLMON is running under QBATCH