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 » WebSphere Message Broker (ACE) Support » Help with MQRFH2 Custom Folder and eSQL

Post new topic  Reply to topic
 Help with MQRFH2 Custom Folder and eSQL « View previous topic :: View next topic » 
Author Message
Testo
PostPosted: Thu Nov 06, 2003 3:30 am    Post subject: Help with MQRFH2 Custom Folder and eSQL Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

I have a SWIFT message and I need to add to it an MQRFH2 header to interact with a WBI software (Liquidity Manager).

This is the header that I would like to obtain:

<ComIbmFml>
<Version>1.0</Version>
<Payment>
<Msg_type>S100</Msg_type>
<Message_format>SWIFT</Message_format>
<Schedule>
<Schedule_date>2003-01-30</Schedule_date>
</Schedule>
</Payment>
<User>
<User_ref>Test for Ebbe</User_ref>
</User>
</ComIbmFml>

This is the eSQL code I wrote:

SET OutputRoot.Properties.MessageSet = 'DM95BT0086001';
SET OutputRoot.Properties.MessageType = 'MT_STRING';
SET OutputRoot.Properties.MessageFormat = 'SWIFT';

SET OutputRoot.MQMD.Format = MQFMT_RF_HEADER_2;


SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)StrucLength = MQRFH_STRUC_LENGTH_FIXED_2 + 224;
SET OutputRoot.MQRFH2.(MQRFH2.Field)CodeCharSetId = 500;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = MQFMT_STRING;
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
SET OutputRoot.MQRFH2."ComIbmFml"."Version" = '1.0';
SET OutputRoot.MQRFH2."ComIbmFml"."Payment"."Msg_type" = 'S103';
SET OutputRoot.MQRFH2."ComIbmFml"."Payment"."Message_format" = 'SWIFT';
SET OutputRoot.MQRFH2."ComIbmFml"."Payment"."Schedule"."Schedule_date" = '2003-11-06';
SET OutputRoot.MQRFH2."ComIbmFml"."User"."User_ref" = 'Test for Ebbe';

SET OutputRoot.MRM = InputRoot.MRM;

But this is the undesired result:

(0x1000000)MQRFH2 = (
(0x3000000)Version = 2
(0x3000000)Format = 'MQSTR '
(0x3000000)NameValueCCSID = 1208
(0x1000000)mcd = (
(0x1000000)Msd = (
(0x2000000) = 'mrm'
)
(0x1000000)Set = (
(0x2000000) = 'DM95BT0086001'
)
(0x1000000)Type = (
(0x2000000) = 'MT_STRING'
)
(0x1000000)Fmt = (
(0x2000000) = 'SWIFT'
)
)
)
(0x100001B)MRM = (
(0x300000B)MessageString = <Body of message>
)
)

Help!

Thanks in advance,
Andrea Tedone
IBM EMEA SOUTH
Back to top
View user's profile Send private message Send e-mail MSN Messenger
smuktineni
PostPosted: Thu Nov 06, 2003 9:00 am    Post subject: Help with MQRFH2 Custom Folder and eSQL Reply with quote

Apprentice

Joined: 28 Aug 2003
Posts: 33
Location: Omaha

If you are trying to put your XML message <ComIbmFml> ... into the RFH2, you should use the <usr> folder of RFH2.
Refer to it as
SET OutputRoot.MQRFH2.usr.ComIbmFml ....

Hope that helps resolve your issue.

Good Luck
Satish
Back to top
View user's profile Send private message Yahoo Messenger
Testo
PostPosted: Thu Nov 06, 2003 10:48 am    Post subject: Thanks! Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Thank you Satish!

Actually, I got your suggestion also from a collegue, but the strange thing is that:

SET OutputRoot.MQRFH2.usr."ComIbmFml"."Version" = '1.0';

does not work, while

SET OutputRoot.MQRFH2.usr.ComIbmFml.Version = '1.0';

is fine. I was not aware that "" could have an impact on that structure.

Thanks again,
Andrea
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Help with MQRFH2 Custom Folder and eSQL
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.