View previous topic :: View next topic |
Author |
Message |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Wed Nov 09, 2005 1:23 pm Post subject: How to code MQRFH header in Cobol(MQ Series z/os V 5.3) |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
haqshaik Beginner
Joined: 11 May 2005 Posts: 49 Topics: 19
|
Posted: Wed Nov 16, 2005 3:36 pm Post subject: |
|
|
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 |
|
 |
|
|