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 » Refering to InputRoot Elements in ''

Post new topic  Reply to topic
 Refering to InputRoot Elements in '' « View previous topic :: View next topic » 
Author Message
new_to_wmb8
PostPosted: Tue May 20, 2014 2:37 am    Post subject: Refering to InputRoot Elements in '' Reply with quote

Centurion

Joined: 28 May 2013
Posts: 127
Location: Hyderabad, India

Hi,

I have to create a command as a string which is taking some value from the InputRoot.


Ex:
I have to create a command like Query = ' {'ID' : 'Value' }' in esql
where
Value = InputRoot.XMLNSC.value.

The problem is i am not create aor put the Value as 'Value' because then it will take it as a string.

any suggestion ?????
Back to top
View user's profile Send private message
mnair77
PostPosted: Tue May 20, 2014 1:18 pm    Post subject: Reply with quote

Newbie

Joined: 02 Oct 2013
Posts: 4

Not sure if this is what you're looking for; but '||' is the concatenation operator, and single quotes are escaped in string literals by repeating the quote.

Code:
Query = ' {''ID'' : ''' || Value || ''' }';
Back to top
View user's profile Send private message
McueMart
PostPosted: Wed May 21, 2014 2:49 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

I have read your post 5 times and still don't understand what you want. Please can you try and explain in more detail?
Back to top
View user's profile Send private message
Esa
PostPosted: Wed May 21, 2014 3:25 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

How are you going to run the command?

Should 'Query = ' be a part of the command?
Back to top
View user's profile Send private message
Tibor
PostPosted: Wed May 21, 2014 5:42 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

McueMart wrote:
I have read your post 5 times and still don't understand what you want


I have understood because I'm not a native English speaker

Anyway the solution was posted by mnair77
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Refering to InputRoot Elements in ''
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.