Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
MQ-DATA-LENGTH is ZERO on MQGET

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Tue Dec 18, 2018 5:41 pm    Post subject: MQ-DATA-LENGTH is ZERO on MQGET
Reply with quote

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
View user's profile Send private message

Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Tue Dec 18, 2018 6:33 pm    Post subject: Re: MQ-DATA-LENGTH is ZERO on MQGET
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10643
Location: italy

PostPosted: Tue Dec 18, 2018 6:55 pm    Post subject: Reply to: MQ-DATA-LENGTH is ZERO on MQGET
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2319
Location: NY,USA

PostPosted: Tue Dec 18, 2018 9:28 pm    Post subject:
Reply with quote

Did you specify MQ-DATA-LENGTH during MQGET call?
Back to top
View user's profile Send private message
Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Tue Dec 18, 2018 10:41 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2319
Location: NY,USA

PostPosted: Tue Dec 18, 2018 10:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to free (unalloc) data sets and d... Ricardo Viegas TSO/ISPF 4 Wed Jan 15, 2020 5:19 am
No new posts Variable length(Pipe delimter) to Fix... SreekanthMada DFSORT/ICETOOL 8 Mon Jan 06, 2020 4:44 pm
No new posts Load Module compare showing mismatche... Aditya.Srivastava PL/I & Assembler 5 Tue Dec 10, 2019 8:26 pm
No new posts Identifying Packed Decimal data in a ... sojivarkey TSO/ISPF 4 Sat Dec 07, 2019 5:36 am
No new posts Reading the CSV data in COBOL and mov... wik123 COBOL Programming 4 Tue Dec 03, 2019 5:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us