Getting Started with Universal Command Agent for SOA - MQ Connector
Objective
The objective of this document is to assist in the following activities regarding the Universal Command Agent for SOA: MQ Connector:
- Installing Universal Agent for SOA 8.0.x, which is comprised of:
- Universal Command Agent for SOA
- Universal Event Monitor for SOA
- Running Universal Command Agent for SOA with an MQ Connector.
Installation Requirements
For installation requirements, see Universal Agent for SOA for UNIX - Installation Requirements.
Installation
For installation information, see Universal Agent for SOA for Linux Installation.
MQ Environment Verification
Verify that you have a working MQ environment. You must define the following MQ values, as these are needed for the Universal Command Agent for SOA jobs that you will submit: queuemanager, queuename, and channel.
You now can run jobs in MQ using the Universal Command Agent for SOA: MQ Connector.
Running a Universal Command Agent for SOA Job on z/OS Connecting to MQ Connector
Step 1 | Create the UCMD Manager JCL. This provides the UCMD Manager options, references to the MQ Connector options, and the payload. It has the following format: |
|---|---|
Step 2 | Create the MQ Connector Command Options Data Set Member. This member contains the UCA for SOA command options for the MQ Connector that specifies the required information to submit a job to the MQ environment. It is referenced with the SCR ddname and has the following format: info If the port on which the MQ Broker is listening has been changed from its default value (1414), you must include the -mqport option to specify the current port. |
Step 3 | Create the Payload Data Set Member. This member contains the MQ message and is read in via STDIN. info The LRECL length depends on the job it describes. Verify that your data set member record length can accommodate the maximum line length of your message. Example: |
Running a Universal Command Agent for SOA Job on UNIX Connecting to MQ Connector
Step 1 | Create the UCMD script file (Mqopt) to contain the the UCA for SOA command options for the MQ Connector that specifies the required information to submit a job to the MQ environment. info If the port on which the MQ Broker is listening has been changed from its default value (1414), you must include the -mqport option to specify the current port. MQPayload.xml |
|---|---|
Step 2 | From a command prompt, execute the following command to send a message to an MQ Queue: You can also execute the command using the Universal Command options for STDIN (-I for input and -F for file): Example output: |