# IVP Request or Reply EMS Consumer Producer

The program `SXJ3RRCP` works as a TIBCO messaging transactional server application.

The Consumer Producer receives request message published by a Substation ES CICS or IMS initiated request trigger process. The Consumer Producer then sends back a response message to the reply destination that either came with the request message, or the destination that was provided in the SYSIN parameter RESPONSE-DEST. The response message type is determined by the inbound request message type.

The sample JCL stream for Consumer Producer can be found in:

Data Set: `USERHLQ.JCL`

Member: `SXJRRRCP`

Note: The `EXEC PARM - IVPNETW` is substituted with a set of TIBCO Enterprise Message Service ESB parameters. It is recommended that you use the provided default settings for all IVP runs. To use other settings, see the TIBCO Enterprise Message Service User’s Guide for information about the parameters.

## SYSIN Parameters

The response messages sent by the utility are determined by the keywords and operands specified in the `SYSIN` DD Name file. The following table shows IVP Request or Reply EMS Consumer Producer parameters:

Keyword | Operand | Description
--- | --- | ---
`CLIENT-ID` | name | The client identifier to use with the EMS connection.
`DEBUG |DBG` | OFF|ON | Enables debug messages. Retain the default (OFF) unless you are requested to enable debugging facilities by TIBCO Support.
`DELAY` | timevalue | The length of time (in seconds) to wait between receive and reply processes. The value must fall between 0 and 60. The default is 0, indicating no wait.
`HOSTPAGE` | code page | The value for setting the host code page.
`NETPAGE` | code page | The value for setting the network code page.
`PSWD` | password | The password associated with the user ID that is used to connect to the EMS server.
`REQUEST-DEST` | destination | Specifies the EMS destination name on which messages are received.
`RESPONSE-DEST` | destination | Specifies the EMS destination name to which reply messages are sent. Replies are also sent to the destination specified in the request message ReplyTo field.
`RESPONSE-INFO` | I|U | Determines which information is contained in the response messages. When I is specified, the message contains the IVP message structure. When U is specified, the message contains data from the user input for field RESULT. The default is I. The message type is determined by the inbound request message type.
`RESULT` | data | The 63 characters data to be used in field IVP-RESULT. This field is blank delimited.
`SERVER` | URL:port | The EMS server URL and TCP port.
`TYPE` | TOPIC|QUEUE | Specifies whether the destination used is a topic or queue.
`USER` | userid | The user ID used to connect to the EMS server.
`WORKERS` | number | The number of concurrent producers to be run. The value must be between 1 and 100. The default is 1.

Copyright © TIBCO Software Inc. All rights reserved.