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

How to retrieve MQRFH2 for a message


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jerryte

Active User


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

PostPosted: Tue Jul 19, 2011 7:39 pm
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: 202
Location: Toronto, ON, Canada

PostPosted: Wed Jul 20, 2011 12:47 am
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Jul 20, 2011 1:43 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
Search our Forums:

Back to Top