Samples for WebSphere MQ for iSeries
Table 1 shows the techniques demonstrated by the WebSphere MQ for iSeries sample programs. Some techniques occur in more than one sample program, but only one program is listed in the table.
WebSphere MQ for iSeries sample programs demonstrating use of the MQI (C and COBOL) Technique C
(source) (1)COBOL
(source) (2)RPG
(source) (3)Putting messages using the MQPUT call AMQSPUT0 AMQ0PUT4 AMQ3PUT4 Putting messages from a data file using the MQPUT call AMQSPUT4 no sample no sample Putting a single message using the MQPUT1 call AMQSINQ4, AMQSECH4 AMQ0INQ4, AMQ0ECH4 AMQ3INQ4, AMQ3ECH4 Putting messages to a distribution list AMQSPTL4 no sample no sample Replying to a request message AMQSINQ4 AMQ0INQ4 AMQ3INQ4 Getting messages (no wait) AMQSGBR4 AMQ0GBR4 AMQ3GBR4 Getting messages (wait with a time limit) AMQSGET4 AMQ0GET4 AMQ3GET4 Getting messages (unlimited wait) AMQSTRG4 no sample AMQ3TRG4 Getting messages (with data conversion) AMQSECH4 AMQ0ECH4 AMQ3ECH4 Putting Reference Messages to a queue AMQSPRM4 no sample no sample Getting Reference Messages from a queue AMQSGRM4 no sample no sample Reference Message channel exit AMQSQRM4, AMQSXRM4 no sample no sample Message exit AMQSCMX4 no sample no sample Browsing first 49 characters of a message AMQSGBR4 AMQ0GBR4 AMQ3GBR4 Browsing complete messages AMQSBCG4 no sample no sample Using a shared input queue AMQSINQ4 AMQ0INQ4 AMQ3INQ4 Using an exclusive input queue AMQSREQ4 AMQ0REQ4 AMQ3REQ4 Using the MQINQ call AMQSINQ4 AMQ0INQ4 AMQ3INQ4 Using the MQSET call AMQSSET4 AMQ0SET4 AMQ3SET4 Using a reply-to queue AMQSREQ4 AMQ0REQ4 AMQ3REQ4 Requesting message exceptions AMQSREQ4 AMQ0REQ4 AMQ3REQ4 Accepting a truncated message AMQSGBR4 AMQ0GBR4 AMQ3GBR4 Using a resolved queue name AMQSGBR4 AMQ0GBR4 AMQ3GBR4 Triggering a process AMQSTRG4 no sample AMQ3TRG4 Trigger server AMQSERV4 no sample AMQ3SRV4 Using a trigger server (including CICS transactions) AMQSERV4 no sample AMQ3SRV4 Using data conversion AMQSVFC4 no sample no sample Using API exits AMQSAXE0 no sample no sample Cluster workload balancing AMQSWLM0 no sample no sample Notes:
- Source for the C samples is in the file QMQMSAMP/QCSRC. Include files exist as members in the file QMQM/H.
- Source for the COBOL samples are in the files QMQMSAMP/QCBLLESRC. The members are named AMQ0xxx4, where xxx indicates the sample function.
- Source for the RPG samples is in QMQMSAMP/QRPGLESRC. Members are named AMQ3xxx4, where xxx indicates the sample function. Copy members exist in QMQM/QRPGLESRC. Each member name has the suffix G.
In addition to these, the WebSphere MQ for iSeries sample option includes a sample data file, which you use as input to the sample programs, AMQSDATA and sample CL programs that demonstrate administration tasks. The CL samples are described in the WebSphere MQ for iSeries System Administration Guide. You could use the sample CL program amqsamp4 to create queues to use with the sample programs described in this chapter.
Parent topic:
Features demonstrated in the sample programs
fg17040_