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 » Simple problem wth esql...

Post new topic  Reply to topic
 Simple problem wth esql... « View previous topic :: View next topic » 
Author Message
YOGIBABA
PostPosted: Sat Apr 09, 2011 9:40 am    Post subject: Simple problem wth esql... Reply with quote

Newbie

Joined: 09 Apr 2011
Posts: 1

HI all

The problem is :

I am using compute node (esql)
I need variable susitution in this..

eg..
DECLARE VAR_FIRST CHARACTER 'OPCM_ACK';
DECLARE VAR_TWO CHARACTER 'VAR_'||'FIRST';


SET OutputLocalEnvironment.ABC = VAR_TWO;

Actually i want "OutputLocalEnvironment.ABC" contain value "'OPCM_ACK'"...
but it comes "VAR_FIRST"..


Is there any function to get that...
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Apr 09, 2011 6:30 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried something like

SET OutputLocalEnvironment.ABC = {VAR_TWO}; ?

Or looked into the EVAL function?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mgk
PostPosted: Sat Apr 09, 2011 11:16 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

When you put a string in single quotes it is then a string literal. If you want to concatentate a literal with a variable remove the single quotes like this:

Code:
DECLARE VAR_TWO CHARACTER 'VAR_'|| FIRST;



Kind regards
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » Simple problem wth 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.