|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to declare an array of characters |
« View previous topic :: View next topic » |
Author |
Message
|
unilog |
Posted: Mon Jul 15, 2002 6:33 am Post subject: How to declare an array of characters |
|
|
 Novice
Joined: 29 Apr 2002 Posts: 17 Location: Paris, France
|
Hi everybody,
I would like to know how to declare an array of characters (and if it's possible) with ESQL. I'm using WMQI V2.1 + CSD 2 on AIX. The structure of my message is an array of XML fields. I use the cardinality function to count them, but I need to store the content of each of these fields in a character variable. My problem is that I don't know how to declare an array of char. I've already checked on the book, and it's not possible to declare an array. If anyone has an idea?
Thanks in advance for your help,
Alex |
|
Back to top |
|
 |
kirani |
Posted: Mon Jul 15, 2002 11:35 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Alex,
You can not declare an array of characters in ESQL directly. For doing this, you could use Environment Tree to store array values, for example,
Code: |
SET Environment.Variables.MyArray[1] = 'Line1';
SET Environment.Variables.MyArray[2] = 'Line2';
SET Environment.Variables.MyArray[3] = 'Line3';
...
SET Environment.Variables.MyArray[N] = 'Linen';
|
Hope this helps. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|