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 » General IBM MQ Support » RFH2 Hearder

Post new topic  Reply to topic
 RFH2 Hearder « View previous topic :: View next topic » 
Author Message
jags1891
PostPosted: Fri Aug 11, 2006 6:56 am    Post subject: RFH2 Hearder Reply with quote

Apprentice

Joined: 15 May 2006
Posts: 32

Hello,
I am workiing on a C program in which I am getting a message from queue and write to file system. The file name is passed in usr folder of RFH2 header.
Can anyone tell me how to access the fields in usr folder of RFH2 header using C.
Thanks in advance,
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 11, 2006 7:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The MQMD format will tell you that the message includes an MQRFH2.

The MQRFH2 will be the first section of the message body.

The MQRFH2 starts with a fixed length structure, for which you can allocate a structure pointer and access the fixed length data.

The fixed length data will tell you how big the variable-length structure is (in 4-byte bounded sections).

Or you can use XMS.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jags1891
PostPosted: Fri Aug 11, 2006 7:41 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2006
Posts: 32

Can you give me a sample if you can.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 11, 2006 7:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/samples.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Aug 11, 2006 8:40 pm    Post subject: Reply with quote

Jedi Knight

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

XMS can be found here:
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24007092

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » RFH2 Hearder
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.