Problem:

Customer is running the Email Report Server/400 output queue monitor in Batch Mode and the server is crashing with the following error messages:
 
--------------------------------------------------------------------------------------------------------------------------------
Print Key Output Page 1
5769SS1 V4R4M0 990521 AWBMISS 07/26/01 14:14:03
Display Device . . . . . : QPADEV000U
User . . . . . . . . . . : JTAYLOR
Additional Message Information
Message ID . . . . . . : CPF2526 Severity . . . . . . . : 50
Message type . . . . . : Information
Date sent . . . . . . : 07/26/01 Time sent . . . . . . : 13:50:48
Message . . . . : Job message queue for 825507/JTAYLOR/EMAIL400 can not be
extended. Job ended.
Cause . . . . . : The size of the job message queue for
825507/JTAYLOR/EMAIL400 reached the maximum size. The maximum size is
defined in the JOBMSGQMX value of the job description used by the job. When
the job message queue becomes full, the job attribute, JOBMSGQFL, identifies
the action to take.
Recovery . . . : Do the following:
- Look at the messages in the job message queue to determine why the job
message queue has become full. You can do this by using the Display Job
Log (DSPJOBLOG) command and specifying 825507/JTAYLOR/EMAIL400 for the JOB
parameter. If an IPL has been done after this problem occurred the job
More...
Press Enter to continue.
F3=Exit F6=Print F9=Display message details F12=Cancel
F21=Select assistance level

--------------------------------------------------------------------------------------------------------------------------------
Print Key Output Page 1
5769SS1 V4R4M0 990521 AWBMISS 07/26/01 14:14:08
Display Device . . . . . : QPADEV000U
User . . . . . . . . . . : JTAYLOR
Additional Message Information
Message ID . . . . . . : CPF2526 Severity . . . . . . . : 50
Message type . . . . . : Information
JOBMSGQFL parameter. To determine if this is the case, trace the job with
the Trace Job (TRCJOB) command. Examine the trace to find out what types of
messages are being sent.
Bottom
Press Enter to continue.
F3=Exit F6=Print F9=Display message details F12=Cancel
F21=Select assistance level
--------------------------------------------------------------------------------------------------------------------------------

Solution:

Use the following command when running the output queue monitor ERSMON in batch mode. This will insure that the job message queue wraps automatically when it fills up. Each AS/400 job typically has a maximum job message queue size of 2-64MB. The JOBMSGQFL parameter on the SBMJOB command controls the action performed when a job message queue fills up for a long running or never ending job. When this value is set to *WRAP, the old job messages will get truncated and the job will continue without problems. 
 
Here's a sample CL command to submit the output queue monitor job to batch to end at 10:00pm :
SBMJOB CMD(RJSERS/ERSMON DELAY(*DELAY) DLYTIM(300) ENDTIME(220000)) JOB(EMRPT400) JOBMSGQFL(*WRAP)

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016