Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to retrieve MQRFH2 for a message

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

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Tue Jul 19, 2011 7:39 pm    Post subject: How to retrieve MQRFH2 for a message
Reply with quote

What MQ call do I use to retrieve the message MQRFH2? The reference guide details the layout for this structure but the programming guide doesn't say how to use this. This is for MQ version 6. I don't need sample code - just where in a manual to research this.
Back to top
View user's profile Send private message

jerryte

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Wed Jul 20, 2011 12:47 am    Post subject: Reply to: How to retrieve MQRFH2 for a message
Reply with quote

I am working with a colleague who is using Java Message services. He is doing the below before doing a PUT:
Code:
message.setStringProperty(ResponseType.PROPERTY_RESPONSE_TYPE, responseCode);


The message is to be sent to Websphere version 6 on z/OS. I am looking for a way to GET the message and retrieve the properties. The MQ manuals don't say how to do this. From what I have read via Google is that I have to use the MQRFH data structure. It doesn't say how to get this.

I am familiar with COBOL. I am not sure what language will be used for the final production. I am curious if this is possible in COBOL. Anyone have experience with this?
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Jul 20, 2011 1:43 pm    Post subject:
Reply with quote

If you browse the message, you'll see that the start of the data is the MQRFH2. So, to access the message itself you need to offset by the length of the MQRFH2.

Garry.
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 REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Truncated error message after VERIFY ... David Sde TSO/ISPF 4 Mon Sep 05, 2016 11:26 pm
No new posts Need to retrieve Julian_date Suganya87 DB2 4 Wed Aug 17, 2016 7:27 pm
No new posts IEC999I MESSAGE ERROR Manshadi ABENDS & Debugging 3 Sun Apr 17, 2016 3:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us