Author |
Message
|
KIT_INC |
Posted: Wed Apr 07, 2010 5:46 am Post subject: Access Environment using Wildcard |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Apr 07, 2010 4:43 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Apr 08, 2010 2:13 am Post subject: |
|
|
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 |
|
 |
KIT_INC |
Posted: Thu Apr 08, 2010 4:10 am Post subject: |
|
|
Knight
Joined: 25 Aug 2006 Posts: 589
|
I tried both *1111 or aa* with no luck. |
|
Back to top |
|
 |
maesbrae |
Posted: Thu Apr 08, 2010 6:30 am Post subject: |
|
|
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 |
|
 |
mgk |
Posted: Thu Apr 08, 2010 7:05 am Post subject: |
|
|
 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 |
|
 |
|