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 » Use of concatenation in a Basic string

Post new topic  Reply to topic
 Use of concatenation in a Basic string « View previous topic :: View next topic » 
Author Message
Djeyli
PostPosted: Fri Jul 12, 2002 12:40 am    Post subject: Use of concatenation in a Basic string Reply with quote

Apprentice

Joined: 03 Apr 2002
Posts: 28
Location: New Zealand

Hi all

I am trying to get two XML attributes to be joined in a final element. The problem is that as usual the manuals are VERY vague about the syntax. I have used the following :

The input XML is:

<CAC24h CACStreetAddress='12 High Street' CACTown='Amsterdam' CACPostalCode='3455TH'/>

The ESQL I am trying to use is:

OutputRoot.XML."Message"."Body"."NewJob"."Address" = InputRoot.XML.CAC24h.(XML.Attribute)CACStreetAddress || InputRoot.XML.CAC24h.(XML.Attribute)CACTown || InputRoot.XML.CAC24h.(XML.Attribute)CACPostalCode;

The output XML is:

<NewJob>
<Address>12 HighStreet Amsterdam 3455TH</Address>
</NewJob>

It is only with the concatenation that I am having the problem with.

Can anyone help me with the correct syntax ?

Thanks
J
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
amigupta1978
PostPosted: Fri Jul 12, 2002 1:53 am    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

whats the problem u r getting...looks like u have forgot the SET keyword

SET OutputRoot.XML."Message"."Body"."NewJob"."Address" = InputRoot.XML.CAC24h.(XML.Attribute)CACStreetAddress || InputRoot.XML.CAC24h.(XML.Attribute)CACTown || InputRoot.XML.CAC24h.(XML.Attribute)CACPostalCode;

Regards,
Amit
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Djeyli
PostPosted: Fri Jul 12, 2002 3:03 am    Post subject: Not the problem Reply with quote

Apprentice

Joined: 03 Apr 2002
Posts: 28
Location: New Zealand

Hi there

Nope thats not the problem - I just left it out by mistake on my post.

But I did find the problem - it was a misnamed field......

Thanks for the response !

Regards
J
Back to top
View user's profile Send private message Send e-mail AIM Address 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 » Use of concatenation in a Basic string
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.