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 » Message translation error

Post new topic  Reply to topic
 Message translation error « View previous topic :: View next topic » 
Author Message
Garth
PostPosted: Wed Jun 04, 2003 8:37 am    Post subject: Message translation error Reply with quote

Newbie

Joined: 22 Sep 2002
Posts: 2

Hi ,

MQSI 2.02 csd 2
I have a very simple message set and flow to translate a message from a c application on a unix platform to mainframe via MQSI . The problem I am encountering can be summarised as follows;

input message definition ( MRM ,CWF ):

string 1 len = 3
string 2 len = 4
filler len = 13

output message message definition (MRM , CWF) ;
string 3 len = 2
string 4 len = 3
filler len = 15

input message data being passed = '12345678901234567890'

Within the debugger , following the compute node ( which moves string 1 to string 3 and string 2 to string 4 and sets filler to spaces ) the value
of string 3 is '123' .

subsequestly the output node throws the message to the error queue defined to the thow node .

I don't understand how if string 3 is defined with a length of 2 it can contain the value '123' .

Garth
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Wed Jun 04, 2003 4:31 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Garth,
I don't think MQSI validates what you move into a CWF defined MRM inside the ESQL nor does it do string truncation when you move a bigger field to a smaller one in the compute node.
This validation occurs after the compute node.
You will need to use the Substring function as :
String3 = Substring(String1 from 1 for 2);
String1 may very well be in the form InputRoot.MRM.String1
and simiarly for String3
Back to top
View user's profile Send private message Yahoo Messenger 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 » Message translation error
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.