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 » Arrays in ESQL?

Post new topic  Reply to topic
 Arrays in ESQL? « View previous topic :: View next topic » 
Author Message
MQme
PostPosted: Mon Jun 30, 2003 3:39 am    Post subject: Arrays in ESQL? Reply with quote

Newbie

Joined: 28 Feb 2003
Posts: 5
Location: Pune, India

Hi,

I am stuck at a crucial point because I am unable to create and use variables as arrays.

DECALRE Temp_Array CHARACTER;
SET Temp_Array[1] = 'asdf';

This throws a syntax error just before the index '['.
Could anyone please help me out.

Many thanks in anticipation.
_________________
Jayanti Vaidya,
Satyam Computer Services Ltd.
"Tat Tvam Asi - Thou Art That" - The Upanishad
Back to top
View user's profile Send private message
Craig B
PostPosted: Mon Jun 30, 2003 3:45 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

WMQI does not support arrays of variables in this way and therefore it is not possible to use an array in the way you have tried. However, the message trees in WMQI can be used in a similar way to arrays. Within a compute node, then the Environment message tree can be used to store user data including many arrays.

For example :

Code:

SET Environment.Variables.myArrayItem[1] = 'Value 1';
SET Environment.Variables.myArrayItem[2] = 'Value 2';
SET Environment.Variables.myArrayItem[3] = 'Value 3';
SET Environment.Variables.myArrayItem[4] = 'Value 4';
SET Environment.Variables.myArrayItem[5] = 'Value 5';

_________________
Regards
Craig
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 » Arrays in ESQL?
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.