Running C Language Producer

To run this sample, invoke the S73P transaction at a blank 3270 screen.

Use the following syntax:

S73P -server server -count num {-topic topic-name | -queue queue-name} -user username -password password -text msg-text

CICS translates parameter values to uppercase. The parameters are as follows:

Parameter Description
-server The URL of the TIBCO EMS server (CICS translates this to uppercase, the program reverts it to lowercase)
-count The number of times to repeat the message. Default is 1. Valid range is 1 to 99999.
-topic If specifying a topic destination, the topic name.
-queue If specifying a queue destination, the queue name.
-user The user name to connect to the TIBCO EMS server.
-password The password to connect to the TIBCO EMS server.
-text The text of the message.

The following example invokes a Producer that connects to a server with the URL emsserverurl:7222 and sends the message this is a test on the topic my.topic.name:

S73P -server emsserverurl:7222 -topic my.topic.name -text this is a test

An error message is displayed if a problem occurs when setting up the Producer process. An error might be caused by an invalid parameter value; check the parameter values and re-enter.

Messages and other program information are printed to DDNAME CEEOUT. The Producer program produces a single message to the screen when it ends.