|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Local List |
« View previous topic :: View next topic » |
Author |
Message
|
Om |
Posted: Mon Nov 10, 2003 12:31 pm Post subject: Local List |
|
|
Novice
Joined: 11 Aug 2003 Posts: 12
|
Hi,
I need to loop through a piece of code for a 11 departments.
I have these departments hard coded and the same code is repeating 11 times in the node to add 11 repeating values in the ouput message.
How can I create a List(Array,List,Row whatever works) of these 11 values in ESQL and iterate through
it to add these 11 values to output message by using the same code in loop.
Can I do
DECLARE REF REFERENCE ;
SET REF = LIST(Dept1, Dept2,...........Dept11) ??
Thanks in advance,
om _________________ -Om |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 10, 2003 1:07 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Code: |
Set InputLocalEnvironment.Variables.DeptList[]=Row(item1,item2,....); |
You can't create "arrays" in normal variables, you can only create subtrees in one of the avaiable trees (Root, Environment, LocalEnvironment, ExceptionList, etc). _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|