View previous topic :: View next topic
|
Author |
Message |
Daniel Prosser
New User

Joined: 05 Nov 2010 Posts: 57 Location: Amsterdam
|
|
|
|
Hi everyone,
I have a MQGET coded which completed with a Return and reason code of 0, but the DATA-LENGTH field is zero and there doesn't seem to be any data returned.
Code: |
MQ-GET-BUF-LEN =0000003301
MQ-DATA-LENGTH =0000000000
MQ-COMPL-CODE =0000000000
MQ-REASON-CODE =0000000000
|
my GET options are set as such.
Code: |
COMPUTE MQGMO-OPTIONS = MQGMO-NO-SYNCPOINT +
MQGMO-WAIT +
MQGMO-ACCEPT-TRUNCATED-MSG |
Does anyone have any bright ideas? |
|
Back to top |
|
 |
Daniel Prosser
New User

Joined: 05 Nov 2010 Posts: 57 Location: Amsterdam
|
|
|
|
Daniel Prosser wrote: |
Hi everyone,
I have a MQGET coded which completed with a Return and reason code of 0, but the DATA-LENGTH field is zero and there doesn't seem to be any data returned.
Code: |
MQ-GET-BUF-LEN =0000003301
MQ-DATA-LENGTH =0000000000
MQ-COMPL-CODE =0000000000
MQ-REASON-CODE =0000000000
|
my GET options are set as such.
Code: |
COMPUTE MQGMO-OPTIONS = MQGMO-NO-SYNCPOINT +
MQGMO-WAIT +
MQGMO-ACCEPT-TRUNCATED-MSG |
Does anyone have any bright ideas? |
I think the problem is with the message - not my GET. |
|
Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10896 Location: italy
|
|
|
|
could it be a consequence of the option
Quote: |
MQGMO-ACCEPT-TRUNCATED-MSG |
?
might be worth reading the manuals to see what happens to a MQPUTs with zero length message
if it can be done then You will have to do some more checks in Your application |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3084 Location: NYC,USA
|
|
|
|
Did you specify MQ-DATA-LENGTH during MQGET call? |
|
Back to top |
|
 |
Daniel Prosser
New User

Joined: 05 Nov 2010 Posts: 57 Location: Amsterdam
|
|
|
|
Rohit Umarjikar wrote: |
Did you specify MQ-DATA-LENGTH during MQGET call? |
I think the MQ-DATA-LENGTH is output. I do set the MQ-GET-BUF-LEN.
I have seen that the message on the Q is missing the data portion - though why is still a mystery. |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3084 Location: NYC,USA
|
|
|
|
Quote: |
I think the MQ-DATA-LENGTH is output. I do set the MQ-GET-BUF-LEN. |
Yes, so do you have it , if not then add it ? |
|
Back to top |
|
 |
|