Add a printf to display the completion and reason codes after the MQGET and
let us know what they are, we might be able to help more then.

Regards
Tim A



                      Wesley Shaw
                      <Wesley_Shaw@DOM.        To:       [EMAIL PROTECTED]
                      COM>                     cc:
                      Sent by: MQSeries        Subject:  Sample amqsget (adding gmo 
accept truncated msg)
                      List
                      <MQSERIES@AKH-WIE
                      N.AC.AT>


                      31/12/2002 04:44
                      Please respond to
                      MQSeries List





I copied the sampleC program amqsget and added the following to the gmo's:

 + MQGMO_ACCEPT_TRUNCATED_MSG

In an attempt to then process all messages, I commented out:

 if (Reason == MQRC_TRUNCATED_MSG_FAILED) {
       /*  CompCode = MQCC_FAILED;*/ }

The program still only gets one message ?  I have tried to follow the
logic but can't see why its not getting all messages.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to