AS400 Agent 12.3.6 - jobs get stuck in Active Status with error below in the Joblog
=========================================================================================================
CPF2103 Escape 40 11/23/21 14:21:58.746436 QLICUSRL QSYS 01A3 LIBCPPRNT UC4NEW *STMT
To module . . . . . . . . . : I5OS
To procedure . . . . . . . : exec__5os400FRC7tstringXTcSP16_b
Statement . . . . . . . . . : 43
Message . . . . : Library AZMLIB already exists in library list.
Cause . . . . . : The library AZMLIB already exists in the library search
list. The library was not added. Recovery . . . : If AZMLIB is the
library you specified omit the command. If you did not specify library
ACMLIB then change the library name (LIB parameter). Then try the command
again.
CEE9901 Escape 30 11/23/21 14:21:58.755803 QLEAWI QSYS *STMT QCMD QSYS 01C8
From module . . . . . . . . : QLEDEH
From procedure . . . . . . : Q LE leDefaultEh2
Statement . . . . . . . . . : 175
Message . . . . : Application error. CPF2103 unmonitored by LIBCPPRNT at
statement 0000000043, instruction X'0000'.
Cause . . . . . : The application ended abnormally because an exception
occurred and was not handled. The name of the program to which the
unhandled exception is sent is LIBCPPRNT I5OS
exec__5os400FRC7tstringXTcSP16_b. The program was stopped at the high-level
language statement number(s) 0000000043 at the time the message was sent.
If more than one statement number is shown, the program is an optimized ILE
program. Optimization does not allow a single statement number to be
determined. If *N is shown as a value, it means the real value was not
available. Recovery . . . : See the low level messages previously listed
to locate the cause of the exception. Correct any errors, and then try the
request again.
=========================================================================================================
job errors with: U00011494 FT '0': Unable to delete StatusStore file ''. Error: '3450 - Descriptor not valid. >Path.cpp#sys::DirectoryStream::hasNext():177<'.
See the SBMJOB parameter vector
====================================================================
CPI1125 Information 00 11/23/21 14:21:58.509725 QWTPCRJA QSYS 0110 *EXT *N
Message . . . . : Job 176559/QSYSOPER/PSSITCS submitted.
Cause . . . . . : Job 176559/QSYSOPER/PSSITCS submitted to job queue WMSSHP
in WMSGPL from job 176550/POU/UC4AGENT. Job Job 176559/QSYSOPER/PSSITCS was
started using the Submit Job (SBMJOB) command with the following job
attributes: JOBPTY(5) OUTPTY(5) PRTTXT() RTGDTA(QCMDB) SYSLIBL(RBTSYSLIB
A_SYS QSYS QSYS2 QUSRSYS QHLPSYS) CURLIB(*CRTDFT)
INLLIBL(UC4NEW QTEMP AZMLIB POPPGM POSDTA POSGPL
WMSJRN WMSSRC QGPL DBU10 INTPGM INTDTA)
INLASPGRP(*NONE) LOG(4 00 *SECLVL) LOGCLPGM(*YES) LOGOUTPUT(*JOBEND)
OUTQ(/*DEV) PRTDEV(PRT01) INQMSGRPY(*RQD) HOLD(*NO) DATE(*SYSVAL)
SWS(00000000) MSGQ(QUSRSYS/DPRR) CCSID(37) SRTSEQ(*N/*HEX) LANGID(ENU)
CNTRYID(US) JOBMSGQMX(64) JOBMSGQFL(*PRTWRAP) ALWMLTTHD(*NO) SPLFACN(*KEEP)
ACGCDE()
=====================================================================
Release : 12.3.6 Component : AUTOMATION ENGINE
System Version V7R3
The program is trying to run the ADDLIBLE LIB(AZMLIB) command but the library is already loaded by the agent which is causing the issue that generates an escape sequence CPF2103 which is not monitored
The workaround is to adapt the job by adding the following line maybe helpful:
ADDLIBLE LIB(ACMLIB )
MONMSG CPF2103
This is a bug corrected in the 12.3.7 H1 Hotfix of the AS400 Agent (Available at this time)