i5/OS

 

To try the samples using triggering on i5/OS, start the sample trigger server, AMQSERV4, in one job, then start AMQSREQ4 in another. This means that the trigger server is ready when the Request sample program sends a message.

  1. The sample definitions created by AMQSAMP4 trigger the C versions of the samples. If you want to trigger the COBOL versions, change the process definitions SYSTEM.SAMPLE.ECHOPROCESS, SYSTEM.SAMPLE.INQPROCESS, and SYSTEM.SAMPLE.SETPROCESS. We can use the CHGMQMPRC command (described in the WebSphere MQ for iSeries System Administration Guide) to do this, or edit and run your own version of AMQSAMP4.

  2. Source code for AMQSERV4 is supplied for the C language only. However, a compiled version (that we can use with the COBOL samples) is supplied in library QMQM.

You could put your request messages on these sample server queues:

A flow chart for the SYSTEM.SAMPLE.ECHO program is shown in Figure 1. Using the example data file the command to issue the C program request to this server is:

   CALL PGM(QMQMSAMP/AMQSREQ4) PARM('QMQMSAMP/AMQSDATA(ECHO)')

This sample queue has a trigger type of FIRST, so if there are already messages on the queue before you run the Request sample, server applications are not triggered by the messages you send.

If you want to attempt further examples, we can try the following variations:

 

Parent topic:

Running the Request sample using triggering


fg17530_