ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Creating MQRFH2 header in PL/1

Post new topic  Reply to topic
 Creating MQRFH2 header in PL/1 « View previous topic :: View next topic » 
Author Message
Heikki
PostPosted: Sun Jul 17, 2005 5:31 am    Post subject: Creating MQRFH2 header in PL/1 Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 5

Hi,
I have done some mq-programming before, but never used the MQRFH2 header. Now we have a request from our AIX group that the messages delivered from the mainframe should include a MQRFH2 header. I've looked in to the programming guide and the reference gudie, but can not find any good explanation or examples on how to do this in PL/1 (cobol is allso an option).

Anyone who can enlighten me on this, or have a link to some example?

Best Regards,
Heikki Elenius
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jul 17, 2005 9:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Look at the new support pack for RFH headers in C (JMX ?)
Check if you can use the C libraries as it will save you tons of grief.
Otherwise the best bet is using JMS.
Anything else : "Hello pain"

Enjoy
Back to top
View user's profile Send private message Send e-mail
Heikki
PostPosted: Sun Jul 17, 2005 10:38 am    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 5

fjb_saper wrote:
Look at the new support pack for RFH headers in C (JMX ?)
Check if you can use the C libraries as it will save you tons of grief.
Otherwise the best bet is using JMS.
Anything else : "Hello pain"

Enjoy

I'm afraid that C is out of the question due to company standards, and due to my lack of skills in that language, and JMX/JMS is something that I'm totally unfamilliar with.

The goal is to make this in
A) PL/1 (company standard mf language)
B) COBOL (allmost standard)
C) Assembler (my standard )

So I'll guess it's gonna be "hello pain"

Somewhere out there, someone must have done this before?

Regards,
Heikki
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Jul 17, 2005 12:29 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Well, if I had to choose between A), B) and C), I'd choose A).

There are some tips here for creating a mesage with an RHF2 header from Ian:

http://www.mainframeforum.com/t169801.html
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Sun Jul 17, 2005 1:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Are you using Java on zOS?
If yes look into the JMS classes for MQ
Read up on JMS (see java.sun.com)
and use it. You will go so much faster...

Enjoy
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Sun Jul 17, 2005 1:55 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
Now we have a request from our AIX group that the messages delivered from the mainframe should include a MQRFH2 header

First question you should ask: Why. Depending on their answer you may not even need the RFH2.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Heikki
PostPosted: Sun Jul 17, 2005 1:58 pm    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 5

Nope. No Java installed in the box, have to live with pl/1, cobol or assembler. Banging my head on this one, will have to talk to the AIX people and talk them into some other sollution. As usual, they allready developed the clientside application without checking with the mainframeguys to see what we can deliver.

Heikki

EDITED: Eddie, yes will have a talk with them asap to try to straighten things out. But anyway, seems strange that there is so little documentation on this for the mainframe.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 18, 2005 12:52 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Not that strange as it is mainly used in pub/sub JMS.
That is why you have a java zOS version for !
Back to top
View user's profile Send private message Send e-mail
Heikki
PostPosted: Thu Aug 11, 2005 4:20 am    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 5

Yes, but still think it strange that there's no samples on a supported function in any of the most common languages on mainframe (COBOL and PL/1). After all, the structure is available both in COBOL and PL/1, but no (good) explanation on how to use it.

Regards,
Heikki
Back to top
View user's profile Send private message
Cliff
PostPosted: Mon Sep 05, 2005 6:58 am    Post subject: Reply with quote

Centurion

Joined: 27 Jun 2001
Posts: 145
Location: Wiltshire

Hekki,

if you still need some help with RFH2 and PL/1 drop me a line and I'll send you some code. No great secrets here - just some care needed handling lengths and padding.

Always happy to help with PL/1 -
kind regards,

Cliff
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Mon Sep 05, 2005 6:46 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Hi Cliff,

If you have PLI / MQ / RFH2 code that you want to share with the world then email me a copy. I will post it to my web site and make a note that you are the author.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Heikki
PostPosted: Tue Sep 27, 2005 11:27 pm    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 5

Cliff,
Yes, I would appreciate i you could send me an example.

Regards,
Heikki
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Wed May 10, 2006 11:41 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi Heikki,

Did you ever get the PL1 code you were looking for? I could really use that now.

Thanks!

-Lori
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Creating MQRFH2 header in PL/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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.