Running the AMQSGET4 and the AMQ0GET4 samples
The Get sample programs get messages from a queue using the MQGET call. The programs are named:
C language AMQSGET4 COBOL language AMQ0GET4 Each program removes messages from the queue that you specify when you call the program. You could use the supplied queue SYSTEM.SAMPLE.LOCAL; run the Put sample program first to put some messages on the queue. You could use the queue SYSTEM.SAMPLE.ALIAS, which is an alias name for the same local queue. The program continues until the queue is empty or an MQI call fails.
An example of a command to call the C program is:
CALL PGM(QMQM/AMQSGET4) PARM('SYSTEM.SAMPLE.LOCAL')
Parent topic:
The Get sample programs
fg17310_