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 » Question on variable substitution

Post new topic  Reply to topic
 Question on variable substitution « View previous topic :: View next topic » 
Author Message
petervh1
PostPosted: Mon Aug 25, 2025 3:23 am    Post subject: Question on variable substitution Reply with quote

Centurion

Joined: 19 Apr 2010
Posts: 139

Is there a reason that this works:

Quote:

IF InputRoot.MQMD.SourceQueue = 'XYZ' THEN
SET Qualifier = 'XMLNSC';
ELSE SET Qualifier = 'JSON.Data';
END IF;
SET OutputRoot.{Qualifier}.Base.XYZ ='1';


but this doesn't
Quote:

IF InputRoot.MQMD.SourceQueue = 'XYZ' THEN
SET Qualifier = 'Environment.Input';
ELSE SET Qualifier = 'InputRoot.JSON.Data';
END IF;
IF {Qualifier}.Base.XYZ ='1' THEN
SET A = 'A';
END IF;


I want to set the 'top level' of a reference to either
Quote:

Environment.Input


or
Quote:

InputRoot.JSON.Data


depending on whence a message comes
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Aug 25, 2025 10:01 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9481
Location: US: west coast, almost. Otherwise, enroute.

What precisely doesn?t work?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
petervh1
PostPosted: Mon Aug 25, 2025 9:31 pm    Post subject: Reply with quote

Centurion

Joined: 19 Apr 2010
Posts: 139

Sorry - I should have been more specific:

The failure case gives me an error when I save the ESQL file.

The Problem description in the Toolkit for the line
Code:

IF {Qualifier}.Base.XYZ ='1' THEN


is as follows:
Quote:

Syntax error. Valid options include: = - ( + .NET CASE CAST COUNT CURRENT_DATE CURRENT_GMTDATE CURRENT_GMTTIME CURRENT_GMTTIMESTAMP CURRENT_TIME CURRENT_TIMESTAMP DATE DECIMAL EVAL EXISTS EXTRACT FALSE FOR GMTTIME GMTTIMESTAMP IDENTIFIER INTERVAL LIST LOCAL_TIMEZONE LOG MAX MIN NOT NULL OVERLAY PARSE PASSTHRU POSITION RAND ROUND ROW SELECT SIMPLE_FUNCTION SUBSTRING SUM THE TIME TIMESTAMP TRIM TRUE UNKNOWN URLENCODE UUIDASBLOB UUIDASCHAR
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 » Question on variable substitution
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.