IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CICS RETRIEVE


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Thu Mar 08, 2018 9:15 am
Reply with quote

I am trying to read data from a MQ using below command.

Code:

EXEC    CICS                    RETRIEVE                   
                                INTO (START-DATA)           
                                LENGTH(WSC-RETRIEVE-LENGTH)


After the retrieve I see the value in WSC-RETRIEVE-LENGTH as 2380 (Which included 332 bytes of MQ header, so tactful data retrieved is 2048 bytes).

But the actual length I am expecting is more than this and the data is getting truncated.

I checked with MQ admin, they told Queue is setup to receive 100MB length.

How can I get full length of data? Do I need to code multiple RETRIEVE commands?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Thu Mar 08, 2018 8:21 pm
Reply with quote

Quote:
I am trying to read data from a MQ using below command.

The RETRIEVE command retrieves data stored by expired START commands,so to read any data from MQ you will use GET.
LENGTH- Upper limit of 32763 bytes on LENGTH is allowed.
Quote:
How can I get full length of data? Do I need to code multiple RETRIEVE commands?
You will just need to pass the MQ name into START-DATA and then use GET to access the MQ.
Please read all the related documentation and clear up the concepts before attempting it to code.
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Fri Mar 09, 2018 2:18 pm
Reply with quote

Thanks Rohit. Used MQGET with max length and it worked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top