Samples

Table 6. Sample programs ± source files (continued)

Technique

C

COBOL

RPG

 

 

 

 

Browsing first 20 characters of a

AMQSGBR4

AMQ0GBR4

AMQnGBR4

message

 

 

 

 

 

 

 

Browsing complete messages

AMQSBCG4

±

±

 

 

 

 

Using a shared input queue

AMQSINQ4

AMQ0INQ4

AMQnINQ4

 

 

 

 

Using an exclusive input queue

AMQSREQ4

AMQ0REQ4

AMQnREQ4

 

 

 

 

Using the MQINQ call

AMQSINQ4

AMQ0INQ4

AMQnINQ4

 

 

 

 

Using the MQSET call

AMQSSET4

AMQ0SET4

AMQnSET4

 

 

 

 

Using a reply-to queue

AMQSREQ4

AMQ0REQ4

AMQnREQ4

 

 

 

 

Requesting message exceptions

AMQSREQ4

AMQ0REQ4

AMQnREQ4

 

 

 

 

Accepting a truncated message

AMQSGBR4

AMQ0GBR4

AMQnGBR4

 

 

 

 

Using a resolved queue name

AMQSGBR4

AMQ0GBR4

AMQnGBR4

 

 

 

 

Triggering a process

AMQSTRG4

±

AMQ3TRG4

 

 

 

 

Using a trigger server

AMQSERV4

±

AMQ3SRV4

 

 

 

 

Using a trigger server (including

AMQSERV4

±

AMQ3SRV4

CICS® transactions)

 

 

 

Using data conversion

AMQSVFC4

±

±

 

 

 

 

Notes:

1.Source for the ILE C samples is in QMQMSAMP/QCSRC. Include files exist as members in the file QMQM/H.

2.Source for the COBOL samples is in QMQMSAMP/QCBLSRC for the OPM compiler, and QMQMSAMP/QCBLLESRC for the ILE compiler. Copy members exist in QMQM/QCBLSRC and QMQM/QCBLLESRC respectively. The members are named AMQ0xxx4 for OPM, and AMQ5xxx4 for ILE. xxx indicates the sample function.

3.There are three sets of RPG sample programs:

a.OPM RPG programs. The source for these is in QMQMSAMP/QRPGSRC. The members are named AMQ1xxx4, where xxx indicates the sample function. Copy members exist in

QMQM/QRPGSRC.

b.ILE RPG programs using the MQI through a call to QMQM. The source for these is in QMQMSAMP/QRPGLESRC. The members are named AMQ2xxx4, where xxx indicates the sample function. Copy members exist in QMQM/QRPGLESRC. Each member name has a suffix of 'R'.

100MQSeries for AS/400, V5.1 Quick Beginnings

Page 112
Image 112
IBM GC34-5557-00 manual Samples, Qmqm/Qrpgsrc