Redwood Documentation

Product Documentation

 

›AS/400 Connector

RunMyJobsPlatform Agents

External Platforms

  • Connecting Redwood Server to External Platforms

Credentials

  • Storing Credentials
  • Credential Protocols

Platform Process Servers

  • On-site Platform Process Servers
  • Cloud Platform Agents
  • Using the Wizard to Create Process Servers
  • Configuring Platform Agents
  • Spool Host Agents
  • The Environment of Platform Agent OS Processes
  • Processing Platform Processes
  • Process Server Services
  • Configuring Agentless Process Servers
  • Automatically Updating Platform Agents
  • Enabling TLS
  • Creating Monitoring Checks
  • Configuring Load Balancing on Platform Agents
  • Platform Agent Registry Entries
  • Monitoring Servers with Platform Process Servers

UNIX Agents

  • UNIX Process Servers
  • UNIX Process Server Configuration Data
  • File Events on UNIX
  • Creating UNIX Process Servers (Advanced)
  • Choosing a User Switching Security Mode
  • Controlling Unix Platform Agents
  • Uninstalling Redwood Server Platform Agents from UNIX

Windows Agents

  • Creating a Microsoft Windows Process Server
  • File Events on Microsoft Windows Process Servers
  • Configuration of a Microsoft Windows Process Server
  • Managed Services
  • Configuring Platform Agents on Microsoft Windows
  • Automating Windows tasks that require a desktop window
  • Uninstalling Redwood Server from Microsoft Windows

Agent Definition Types

  • Using the BASH Definition Type
  • Using the KSH Definition Type
  • Using the CSH Definition Type
  • Using the Perl Definition Type
  • Using the Python Definition Type
  • Using the PowerShell Definition Type
  • Using the Visual Basic Script Definition Type
  • Using the CMD Definition Type
  • Using the R Process Definition Type
  • Using the DCL Definition Type
  • Using Platform Definition Types
  • Using the OS Native Definition Type
  • Microsoft Windows Definition Types
  • Using the SQLPLUS Definition Type
  • Using the FTP Definition Type
  • Using the Groovy Definition Type

Command Line Tools

  • Command Line System Tools
  • jtool
  • jcat
  • jdescription
  • jevent
  • jecho
  • jftp
  • JFTP Return Codes
  • jgetcredential
  • jgetfile
  • jgetpar
  • jjoin
  • jlink
  • jlog
  • jmail
  • jmessage
  • jmonitor
  • jputfile
  • jregister
  • jrfc
  • jscp
  • jtool screenshot
  • jscript
  • jsecret
  • jsleep
  • jsplit
  • api-tool.jar

OpenVMS Process Servers

  • Creating HP OpenVMS Process Servers
  • Installing the Platform Agent on HP OpenVMS
  • Configuring HP OpenVMS Process Servers
  • File Events on HP OpenVMS
  • HP OpenVMS Definition Types

AS/400 Connector

  • IBM AS/400 Connector Architecture
  • Setting up the IBM AS/400 Connector
  • Creating an IBM AS/400 Process Server
  • Files on AS/400 Raise Events
  • Using the AS/400 Definition Type
  • Redwood Server OS Support
  • IBM z/OS Definition Types
  • Using the JCL_FTP Definition Type
  • IBM z/OS System Tools

Reference

  • Balancing the Load
  • Credential Protocols
← Setting up the IBM AS/400 ConnectorFiles on AS/400 Raise Events →

Creating an IBM AS/400 Process Server

This document covers the installation, syntax and operation of the IBM AS/400 connector for Redwood Server. This can be used to manage chains, processes, and file events on AS/400 systems. It does not cover installing Redwood Server to run on an application server on AS/400, that is covered by a separate document.

note

AS400 process servers are only available when your license includes a non-zero value for the key ProcessServerService.AS400.limit. Process servers that include the AS400 job definition type will not be counted towards the ProcessServerService.OS.limit and ProcessServerService.External.limit license keys.

AS/400 process servers require the following key:

  • ProcessServerService.AS400.limit - the total number of AS/400 process servers

You set the AS400Server process server parameter to the default AS/400 system, you can override this on the process definition by specifying a parameter of the same name.

Running Jobs

To run an AS/400 job, Redwood Server makes a connection to the AS/400 using the AS/400 process server parametersAS400Server and AS400User (the latter can be overridden by the process definition Run As user ). It then executes the command:

SBMJOB CMD(command) AS400JobAppend

This should produce a CPC1221 message containing the AS/400 job ID. This job ID (and other information) is then written to the Remote attributes of the &Process, and can be seen in the Processes monitor.

The job is then monitored until it reaches any job status in AS400JobTerminalStates, or it reaches the job status *ACTIVE and any active status in AS400JobFailOnActiveStatus. During this process any messages on the job except those whose codes are listed in AS400JobIgnoredExceptions will cause the process to go into Error.

If the job reaches a status in AS400JobTerminalStates, then the spool files are retrieved according to the process server and process definition specification. If a job log is found, this log is parsed and the return code fetched. If the return code is not 0, then the process is put into Error. If no log is found the process is put into Completed.

If it reaches a status in AS400JobFailOnActiveStatus then the process is put into Error.

Prerequisites

Redwood Server

  • The license key ProcessServerServiceAS400.limit

AS/400

  • OS/400 (aka i5 OS) V5R0 or later
    • Older versions are possible (down to V4R3)
  • on-site-related topic Connectivity from the host on which Redwood Server is installed to the AS/400
  • cloud-related topic Connectivity from the secure gateway to the AS/400
  • Ports 8470 and 8476 (9475 and 9476 for SSL/TLS) of the AS/400 application server need to be open and accessible.
    • See JTOpen - Server ports used for more information

No additional software needs to be installed on the AS/400.

Procedure

Creating an AS/400 process server

  1. Navigate to "Environment > Process Servers".
  2. Choose New Process Server from the context-menu.
  3. Select AS/400 (IBM System i) and choose Next.
  4. Fill in the name.
  5. On the Queues tab, add a dedicated queue for the AS/400 system, we recommend a dedicated queue for each AS/400 with the same name as the AS/400. Other queues are optional.
  6. On the Parameters tab, add values for:
  7. AS400Server - If you don't need file events, and want to put the username/password in the process definition Run As User field.
  8. AS400Server and AS400User - If you want file events, or don't want to put the username/password in the process definition Run As User field.

See the AS/400 Process Server Parameters for more information on AS/400-related process server parameters.

Check that the process server is running:

  1. Navigate to "Environment > Process Servers".
  2. Check the status icon of the process server, a connecting status can indicate a problem if it persists after 1 minute, refresh the view.
  3. Expand the process server, check the status icon next to the AS400 service.

You can now start the process server. If it won't start, check the operator messages.

  1. Navigate to "Monitoring > Operator Messages".
  2. Scroll down to the latest entries.
  3. Look for the name of the AS/400 process server.

Test the process server by running a process that should complete successfully

  1. Create a process definition called AS400_DSPJOB containing only the text DSPJOB, and submit it to run on the AS/400 system.
  2. The job should run on the AS/400 and the output of the DSPJOB command should be visible in the QPDSPJOB.1 file.

Test the process server by running a job that should fail

  1. Create another process definition called AS400_Always_Fail, with the command text below. This command will fail with an error code.
  2. Check that the process return code and the return code in the log match up.
  3. Navigate to "Monitoring > Processes".
  4. Locate the process that failed, choose it.
  5. In the lower details pane, expand Files and open stdout.log and stderr.log, make sure the return code in the file matches the return code in the lower detail pane.

Command text for AS400_Always_Fail

DSPJOB JOB(000000/*N/REDWOOD)

See Also

  • Files on AS/400 Raise Events
  • Tracing AS/400 Connections
← Setting up the IBM AS/400 ConnectorFiles on AS/400 Raise Events →
  • Running Jobs
  • Prerequisites
  • Redwood Server
  • AS/400
  • Procedure
  • Creating an AS/400 process server
  • Check that the process server is running:
  • Test the process server by running a job that should fail
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |