Features demonstrated in the sample programs on IBM i

A table that shows the techniques demonstrated by the IBM MQ for IBM i sample programs.

Some techniques occur in more than one sample program, but only one program is listed in the table. All the samples open and close queues using the MQOPEN and MQCLOSE calls, so these techniques are not listed separately in the table.

Table 1. Sample programs demonstrating use of the MQI
Technique RPG (ILE)
Use the MQCONN and MQDISC calls AMQ3ECH4 or AMQ3INQ4
Implicitly connecting and disconnecting AMQ3PUT4
Putting messages using the MQPUT call AMQ3PUT4
Putting a single message using the MQPUT1 call AMQ3ECH4 or AMQ3INQ4
Replying to a request message AMQ3INQ4
Get messages (no wait) AMQ3GBR4
Get messages (wait with a time limit) AMQ3GET4
Get messages (with data conversion) AMQ3ECH4
Browsing a queue AMQ3GBR4
Use a shared input queue AMQ3INQ4
Use an exclusive input queue AMQ3REQ4
Use the MQINQ call AMQ3INQ4
Use the MQSET call AMQ3SET4
Use a reply-to queue AMQ3REQ4
Requesting exception messages AMQ3REQ4
Accepting a truncated message AMQ3GBR4
Use a resolved queue name AMQ3GBR4
Trigger processing AMQ3SRV4 or AMQ3TRG4
Note: All the sample programs produce a spool file that contains the results of the processing.