|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Concatenation of strings error |
« View previous topic :: View next topic » |
Author |
Message
|
kishankumar.v |
Posted: Fri Jan 04, 2002 2:25 am Post subject: |
|
|
Apprentice
Joined: 26 Nov 2001 Posts: 47
|
Hi,
I have defined two messages
msg1 (name1 string length 4)
msg2 (fullname string length
In compute node I have written like this
SET "OutputRoot"."MRM"."fullname" = EVAL("InputBody"."name1"||'kish');
But I get the following error when I give "kish" in the iqueue.
"The correlation name 'kishkish' is not valid"
"The first element of a field reference must be
a valid correlation name, from those in scope.
This message may sometimes be due to an incorrectly
formed or spelled expression which is not intended to
be a field reference being parsed as if it were a field
reference because the parser does not recognize it. "
Can u please specify what Iam missing or what I need to do to achieve
the concatenatiuon of first name and second name.
Please help....I have already wasted time on this.
Thanks in Advance,
Kishan |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jan 04, 2002 10:29 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Isn't this just:
SET "OutputRoot"."MRM"."fullname" = "InputBody"."name1"||'kish';
Why do you think you need the EVAL.
Cheers,
_________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
kishankumar.v |
Posted: Sun Jan 06, 2002 10:12 pm Post subject: |
|
|
Apprentice
Joined: 26 Nov 2001 Posts: 47
|
Hi,
I admit that was not needed .. but that was just one combination I was trying out ... Actually if Iam able to understand what that error message means may be I can find the source of the error...Iam not able to comprehend what that error message means.
Regards,
Kishan |
|
Back to top |
|
 |
mpuetz |
Posted: Mon Jan 07, 2002 8:08 am Post subject: |
|
|
Centurion
Joined: 05 Jul 2001 Posts: 149 Location: IBM/Central WebSphere Services
|
Hi,
your error message of your original message
means the following:
EVAL('somestring')
tries to evaluate the text 'somestring'
as a valid ESQL expression and tries to
execute it.
If you input message InputBody.name1 contain
the string 'kish' then your construct
EVAL("InputBody.name1" || 'kish')
would evaluate to
EVAL('kishkish')
Since you are using EVAL as the right-hand side of an assignement the only allowed expressions in this context are either
a value (number, string in quotes, etc)
or a variable (correlation) name.
Since kishkish is not a valid value (not
a number or a string in quotes) the ESQL
interpreter tries to evaluate it as a
correlation or variable name. Since you
haven't defined a variable with the name
kishkish, it's not valid. That's way you
get the error message.
_________________ Mathias Puetz
IBM/Central WebSphere Services
WebSphere Business Integration Specialist |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|