AS400 Agent freezes when ENDUCAGENT LIB(UC4) OPTION(*CNTRLD) is executed

Document ID : KB000084787
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
Error in QPJOBLOG file after events:
CPF9801 Escape 40 06/03/17 07:32:55,091140 QLICKOBJ QSYS 01B6 A950X001P A950POTOL 0024
Message . . . . : Object CHKACTJOB in library QTEMP not found.
Cause . . . . . : The object CHKACTJOB in library QTEMP type *USRSPC not found. The object name, library name, or the object type is not correct.

When the AS400 Agent is stopped using the command below, the agent freezes and does not stop.

ENDUCAGENT LIB(UC4) OPTION(*CNTRLD)

Errors similar to those below are displayed.
 
Error in QPJOBLOG file after events:
CPF9801 Escape 40 06/03/17 07:32:55,091140 QLICKOBJ QSYS 01B6 A950X001P A950POTOL 0024Message . . . . : Object CHKACTJOB in library QTEMP not found.Cause . . . . . : The object CHKACTJOB in library QTEMP type *USRSPC notfound. The object name, library name, or the object type is not correct.If the library name is not specified, the object may be in a library that is not contained in the library list. Recovery . . . : Correct the object name, library name, or object type. If the library name was not specified,specify the library name and try the request again.
Error in Agent's Report when the agent is stopped:
U00011486 FT '13586894': Unable to switch back to original security context from user context 'UC4ICS1'. Error: 'CPF22E7 - ProfileHandle is not valid.'."U02000135 Thread '163' ended."U00011486 FT '13597434': Unable to switch back to original security context from user context 'UC4ICS1'. Error: 'CPF22E7 - ProfileHandle is not valid.'."U02000135 Thread '164' ended."U00011486 FT '13598520': Unable to switch back to original security context from user context 'UC4ICS1'. Error: 'CPF22E7 - ProfileHandle is not valid.'."U02000135 Thread '165' ended."
Output showing that all threads of the agent process are put in SIGW status.Error in qdspjoblog of the Agent:
Thread Name Status CPU I/O Priority00000001 THDW 6,397 6931 5000000299 SIGW 0,003 40 5000000293 SIGW 0,003 40 5000000292 SIGW 0,015 43 505770SS1 V7R1M0 100423 Display Job 6/03/17 7:32:55 Page 11Job . . . : UC4AGENT User . . . : UCPROD Number . . . . : 038507Total Aux RunThread Name Status CPU I/O Priority00000290 SIGW 0,002 41 500000028A SIGW 0,002 39 50......0000021D SIGW 0,010 39 500000021B SIGW 0,003 43 5000000215 SIGW 0,002 44 5000000214 SIGW 0,011 40 50



 
Environment:
OS: IBM AS/400
OS Version: AS400 V7R1
Cause:
Cause type:
Defect
Root Cause: AS400 Agent freezes when ENDUCAGENT LIB(UC4) OPTION(*CNTRLD) is executed.
Resolution:
Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
Component(s): Agent AS400

Automation Engine 12.1.1 - Available
Automation Engine 12.0.4 - Available
Automation Engine 11.2.7 - Available
Additional Information:
Workaround :
Stop the agent  using the command:
 
ENDUCAGENT LIB(UC4) OPTION(*IMMED)