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 » Dynamic variable names

Post new topic  Reply to topic
 Dynamic variable names « View previous topic :: View next topic » 
Author Message
Prasi
PostPosted: Wed Nov 06, 2013 11:41 am    Post subject: Dynamic variable names Reply with quote

Apprentice

Joined: 03 Aug 2011
Posts: 42

Hi,

Is there any way I can create dynamic variable names based on FIELDNAME. For eg:
FIELDNAME(InputRoot.XMLNSC.TransactionDetails.*[<])); will fetch me a value of AccountDetails and this has to be declared as soem datatype. So is there any way I can do this?
Back to top
View user's profile Send private message
gs
PostPosted: Thu Nov 07, 2013 12:29 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

Not sure what you want to achieve but you could use LocalEnvironment.
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Nov 07, 2013 1:16 am    Post subject: Re: Dynamic variable names Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Prasi wrote:
Hi,

Is there any way I can create dynamic variable names based on FIELDNAME. For eg:
FIELDNAME(InputRoot.XMLNSC.TransactionDetails.*[<])); will fetch me a value of AccountDetails and this has to be declared as soem datatype. So is there any way I can do this?


Variable names cannot be dynamic.

Check DECLARE FUNCTION statement in the InfoCenter.
Back to top
View user's profile Send private message
dogorsy
PostPosted: Thu Nov 07, 2013 2:06 am    Post subject: Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

You can use dynamic elements in a tree, or in a ROW variable. As suggested by Esa , please read the InfoCentre
Back to top
View user's profile Send private message
NealM
PostPosted: Thu Nov 07, 2013 1:07 pm    Post subject: Reply with quote

Master

Joined: 22 Feb 2011
Posts: 230
Location: NC or Utah (depends)

If your XML doesn't have a schema, you can just treat all element data as Char. If you do have a schema, then why are you asking? A CASE statement setup would be all you need.
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 » Dynamic variable names
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.