This document guides you through the new installation of an OS/400 agent.
The following guide describes how to install an agent in an AE system in which authentication is not used.
Additional installation steps are required before the agent can be started and used if you intend to use one of the available authentication methods. More detailed information is provided in the document Advanced Security.
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.
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 CallAPI implementation are described in a separate document.
1. | Transferring the file to the host |
---|
CRTLIB LIB(UC4) TYPE(*PROD) TEXT('UC4 Agent')
CRTSAVF FILE(UC4/UC4)
ftp <MY.AS400>
<USER>
<PASSWORD>
cd UC4TMP
bin
put UCXJO41.bin UC4
quit
2. | Creating the library |
---|
RSTOBJ OBJ(*ALL) SAVLIB(QTEMP) DEV(*SAVF) SAVF(UC4/UC4) MBROPT(*ALL) ALWOBJDIF(*ALL) RSTLIB(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. This is the same as the ENDJOB command issued on the agent process.
ENDUCAGENT LIB(UC4) OPTION(*IMMED)
Aborts the agent that has been started from the library with ENDJOB OPTION(*IMMED)..
For further information about commands, see: KnowledgeBase.