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
 
CICS RETRIEVE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: CICS RETRIEVE
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

Senior Member


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

PostPosted: Thu Mar 08, 2018 8:21 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Cics storage violation Venkata Ramayya CICS 10 Thu Nov 07, 2019 12:45 am
No new posts CICS Web Services configuration question SickPup404 CICS 17 Mon Nov 04, 2019 9:56 pm
This topic is locked: you cannot edit posts or make replies. ASSIST/GT with CICS BPranav CICS 1 Mon Sep 16, 2019 9:26 pm
This topic is locked: you cannot edit posts or make replies. COBOL/CICS with real time MQ Series u... BPranav CICS 2 Mon Sep 16, 2019 9:19 pm
No new posts Can rexx be exected in cics(online) e... RAVISANKAR07 All Other Mainframe Topics 3 Wed Sep 04, 2019 5:51 pm

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