This document describes the hotfix installation procedure for the OS/400 agent.
A three-figure abbreviation is provided for each supported OS/400 version. It is part of the agent's file name and is described in the Terminology (O41 for OS/400 version V4R1M0 and later).
Terminate the agent before you start the update installation.
The OS/400 agent is supplied as a binary SavFile. This file can be found in the subdirectory IMAGE:AGENTS\AS400.
The CallAPI files and its implementation are described in a separate document.
1. | Transferring the file to the host |
---|
CRTLIB LIB(UC4TMP)
CRTSAVF FILE(UC4TMP/UC4)
CRTLIB LIB(UC4AUSL) TYPE(*PROD) TEXT('Automation Engine version 11.0.0')
ftp <MY.AS400>
<USER>
<PASSWORD>
cd UC4TMP
bin
put UCXJO41.bin UC4
quit
2. | Creating the library |
---|
RSTOBJ OBJ(*ALL) SAVLIB(UC4AUSL) DEV(*SAVF) SAVF(UC4TMP/UC4)
DLTLIB LIB(UC4TMP)
RNMOBJ OBJ(QSYS/UC4AUSL) OBJTYPE(*LIB) NEWOBJ(UC4)
3. | Setting up the system environment |
---|
There are two different methods that can be used to start the agent. Variant 1 requires a CL routine per agent that should start (more complex). Variant 2 starts or ends the agent via separate programs.
4. | Creating the start and end programs |
---|
UC4/CLLE(UCEX_RUN) - starts the agent
UC4/CLLE(UCEX_END) - ends the agent
5. | Starting or ending the Agent |
---|
4. | Including the library in the library list |
---|
ADDLIBLE UC4
adds the library to the library list
or:
CHGCURLIB UC4
changes the current library for the particular job to UC4
5. | Starting or ending the Agent |
---|
Start the agent by using the command STRUCAGENT.
The following examples explain the agent's starting procedure:
STRUCAGENT LIB(UC4) FILE(UC4/INI) MBR(UCXJO41)
Starts the agent from the library by using the INI file UC4/INI(UCXJO41).
STRUCAGENT LIB(UC4) PATH('/user/uc4/ucxjo41.ini')
Starts the agent from the library by using an INI file that is stored in the IFS file system.
The command ENDUCAGENT ends the agent.
ENDUCAGENT LIB(UC4) OPTION(*CNTRLD)
Ends the agent that has been started from the library in a controlled manner.
ENDUCAGENT LIB(UC4) OPTION(*IMMED)
Aborts the agent that has been started from the library with ENDJOB.
For further information about commands, see: KnowledgeBase.