MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to code MQRFH header in Cobol(MQ Series z/os V 5.3)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Nov 09, 2005 1:23 pm    Post subject: How to code MQRFH header in Cobol(MQ Series z/os V 5.3) Reply with quote

Hi,
I need some help in developing MQRFH header in Cobol. I have to write a "publisher" message to a Q that's on the z/os and subscribed to Q's on the Unix box. I have gone thru the manuals & identified the needs but I want to peek at some sample code. Have any of you worked on this area? if so do you have some guidence for me. From what I understood I require MQMD + MQRFH + Data. How do I set the parameters in MQRFH & where do I add the "Topic" that needs to be published to?. Actual sample code in Cobol would gime a good picture. Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Nov 09, 2005 2:28 pm    Post subject: Reply with quote

Suresh kumar,

Check this link which might be of some help. on left side you will find more information about subscribe/publishing !

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzak.doc/csqzak10168.htm

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
haqshaik
Beginner


Joined: 11 May 2005
Posts: 49
Topics: 19

PostPosted: Wed Nov 16, 2005 3:36 pm    Post subject: Reply with quote

Suresh,
I am not sure how to code the MRFH header, But MQRFH comes into picture only when there is a change in the encoding schemas of the two queue managers participated in messaging services. If a message is comming from the unix box, when you read the messge with MQGMO-CONVERT option, this will add the RFH header to the message(the encoding schemas will differ). once you write the information into a file, you can see the RFH header populated. MQMD need not be added explicitly as it will gengerated by the system.
if you have an option of loading the message from the mid tier to a mainframe queue it can be windows operating system or unix box, read the message with the convert option and write the message to a file. This way you can analyse the MQRFH header fileds and how they are being populated. Probably you can add the MQRFH header to the message and then send it back to the mid tier. MQ does not support conversion of the messages to the native encoding schemas on some platforms.

Hope this will be helpful..

Thanks,
Salauddin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group