i5/OS

 

Each program retrieves copies of all the messages on the queue that you specify when you call the program; the messages remain on the queue. We can use the supplied queue SYSTEM.SAMPLE.LOCAL; run the Put sample program first to put some messages on the queue. We can use the queue SYSTEM.SAMPLE.ALIAS, which is an alias name for the same local queue. The program continues until it reaches the end of the queue or an MQI call fails.

The C samples let you specify the queue manager name, generally as the second parameter, in a similar fashion to the Windows systems samples. For example:

CALL PGM(QMQM/AMQSTRG4) PARM('SYSTEM.SAMPLE.TRIGGER' 'QM01')
If a queue manager is not specified, it connects to the default one. This is also relevant to the RPG samples. However, with the RPG samples supply a queue manager name rather than allowing it to default.

 

Parent topic:

The Browse sample programs


fg17250_