AS400 agent installation issues in new System with non 273 CCSID

book

Article ID: 242239

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

During the first attempt to install and configure an AS400 agent on a system with Turkish CCSID, the agent would refuse to start and submit jobs correctly with the following errors:

Output:

CALL PGM(UC4/UCXJO41)
Start Agent from INI 'UC4/INI(UCXJO41)'.
File TMP in library UC4 already exists.
Unable to open Log file '/QSYS.LIB/UC4.LIB/TMP.FILE/UCEX_LOG//.MBR'.
CPF7302 - File TMP not created in library UC4.Cause . . . . . : The file
was not created because of errors. Recovery . . . : See the error
messages previously listed. Correct the errors, and then try the
request again. >i5OS.cppÖos400::exec(const String &, bool):15<
Ownership of object IPIFC in QTEMP type *USRSPC changed.
The requested heap space operation is invalid.          
      

Cause

See in resolution

Environment

Release : 12.3.x

Component : AUTOMATION ENGINE

Sub-Component: Agent for AS400

Resolution

Several issues:

  1. Inconsistency in the configuration file.
    The Logging parameter that determines the log member is declared as:
    logging=UC4/TMP(UCEX_LOG.TXT)
    This was not correct.
    The right definition must be 
    logging=UC4/TMP(UCEX_LOG##)
    The '##' is a sequence that forces the system to create a log member with an  incremented identifier. This actually explains why the agent is unable to start:
    ====================================
    *NONE      Information                  25/04/22  12:32:11,994862  QP0ZCPA      QSYS        *STMT    QP0ZCPA     QSYS        *STMT
                                         From module . . . . . . . . :   QP0ZUDBG
                                         From procedure  . . . . . . :   Qp0zVLprintf
                                         Statement . . . . . . . . . :   64
                                         To module . . . . . . . . . :   QP0ZUDBG
                                         To procedure  . . . . . . . :   Qp0zVLprintf
                                         Statement . . . . . . . . . :   64
                                         Message . . . . :   Unable to open Log file '/UC4/TMP(UCEX_LOG.TXT)'.
    *NONE      Information                  25/04/22  12:32:11,994901  QP0ZCPA      QSYS        *STMT    QP0ZCPA     QSYS        *STMT
                                         From module . . . . . . . . :   QP0ZUDBG
                                         From procedure  . . . . . . :   Qp0zVLprintf
                                         Statement . . . . . . . . . :   64
                                         To module . . . . . . . . . :   QP0ZUDBG
                                         To procedure  . . . . . . . :   Qp0zVLprintf
                                         Statement . . . . . . . . . :   64
                                         Message . . . . :   3457 - File exists.
    ====================================
    Please adjust this setting in the INI file restart the agent.

  2. The agent would not produce any log, the reason being that the CCSID starting the Agent was not the same as the INI file delivered in the kit (273), to fix it:
    Start the Agent with CCSID, this can be done with a command like this:
    CHGJOB CCSID(273)