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 » Is there Array datatype in esql?

Post new topic  Reply to topic
 Is there Array datatype in esql? « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Thu Oct 05, 2006 9:59 am    Post subject: Is there Array datatype in esql? Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

need to perform the following.

SET consseq_array[*] = PASSTHRU ('SELECT Nextval FOR CONSSEQ FROM CONSUMER');
SET consseq = consseq_array[1];
-- set consseq = PASSTHRU ('SELECT Nextval FOR CONSSEQ FROM CONSUMER');
SET acctseq_array[] = PASSTHRU ('SELECT Nextval FOR ACCTSEQ FROM ACCOUNT'); SET acctseq = acctseq_array[1];
-- set acctseq = PASSTHRU ('SELECT Nextval FOR ACCTSEQ FROM ACCOUNT');
SET acctseq = acctseq_array[1];

when I run this, it gives error in all arrays variable. Can not array be implemented in Esql?

thanks
Back to top
View user's profile Send private message
madi
PostPosted: Thu Oct 05, 2006 10:03 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

u can use ROW

--madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 05, 2006 10:07 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's not an array.

It's a logical tree, where siblings of an element can be accessed by index.

And you don't want to say consseq_array[*].

You want consseq_array[].

And if consseq_array is a local variable, and not a reference to a Tree element, then it should be declared as a ROW variable. but that only works in v6.
_________________
I am *not* the model of the modern major general.
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 » Is there Array datatype 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.