Sample program DPUT (imqdput.cpp)

This is a distribution list program that puts messages to a distribution list consisting of two queues. DPUT shows the use of the ImqDistributionList class (see ImqDistributionList). This sample is not supported on z/OS.

  1. Run imqdputs queue-name-1 queue-name-2 to place messages on the two named queues.
  2. Run imqsgets queue-name-1 and imqsgets queue-name-2 to retrieve the messages from those queues.