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 » Access Environment using Wildcard

Post new topic  Reply to topic
 Access Environment using Wildcard « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Wed Apr 07, 2010 5:46 am    Post subject: Access Environment using Wildcard Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I saw this in the Info center under ESQL field reference overview
You can use the asterisk (*) wildcard character in a path element to match any name. You can also use "*" to specify a partial name. For example, Prefix* matches any name that begins with "Prefix".

I have this in the Environment
Environment.aa1111.bb2222 = mydata
Environment.aa1234.bb2234 = mydata1

The Environment is passed to my compute node and 'aa' 'bb' are some prefixes used in other nodes before my compute node

In my compute node I need to output the environment Environment.aa1111.bb2222
set outputRoot.XMLNSC.Mymsg.data = Environment.*1111.*2222 ;

But this is giving me a syntax error. I am using Toolkit 61 CSD5.

Can some one help?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 07, 2010 4:43 pm    Post subject: Reply with quote

Grand High Poobah

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

I think what you want to understand under "prefix" is really namespace.
So your name would look something like:

Environment.Data.prefix1:name1.prefix2:name2 etc...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Apr 08, 2010 2:13 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

A tree in Enviroment would only have namespace elements in it if it was constructed under a parser that supported namespace elements...

A prefix is something that of course comes *before* something else. So 'Prefix*' matches everything that starts with 'Prefix'.

KIT_INC is trying to match a postfix - '*11111'. Everything that *ends* with '1111'.

I don't know off the top of my head if the * works that way in ESQL.

But certainly an ESQL Select should allow this in some manner.
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Thu Apr 08, 2010 4:10 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I tried both *1111 or aa* with no luck.
Back to top
View user's profile Send private message
maesbrae
PostPosted: Thu Apr 08, 2010 6:30 am    Post subject: Reply with quote

Novice

Joined: 03 Jun 2003
Posts: 12

I don't think the partial name works in spite of what the documentation says. So Environment.*.* is OK but Environment.a*.b* isn't.

Dunno if this is a bug or a documentation error.
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Apr 08, 2010 7:05 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

I'm afraid that this syntax ( Environment.*1111.*2222 or Environment.1111*.2222* ) is a documentation error. The documentation will be corrected in the next refresh...

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 » Access Environment using Wildcard
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.