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 » Problem using passthru returning cursor in called function

Post new topic  Reply to topic
 Problem using passthru returning cursor in called function « View previous topic :: View next topic » 
Author Message
sclarke
PostPosted: Mon Nov 14, 2005 2:00 pm    Post subject: Problem using passthru returning cursor in called function Reply with quote

Apprentice

Joined: 05 Jan 2002
Posts: 39

I am probably doing something pretty silly but I can't get it... It works in regular esql but can't get it to work in called function.

I have a passthru which calls a stored procedure which returns a cursor contain 2 columns. I need it to return to an array. So in my esql - it worked just fine when I returned to Environment.resultSet - my 2 columns were returned as Environment.resultSet.fieldA, and Environment.resultSet.fieldB

When I move the code to a function - I can't use Environment, I can't define a field as an 'array' - when I define resultSet as Character - and the passthru returns a list - I get an error trying to put list into character field.

Please help!! Thank you all in advance!
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Mon Nov 14, 2005 8:36 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi sclarke,

Solving you problem would have been much easier if we could look at the code you have for the function and the Environment.resultSet.....

From your post it seems that the result set is returning two columns...
What about the function return....how many variables is it returning...

Why dont u try Environment.resultSet[]...... dont know if it works...but I usually end up trying all possibilities

Regards.
Back to top
View user's profile Send private message Send e-mail
sclarke
PostPosted: Tue Nov 15, 2005 3:04 am    Post subject: Reply with quote

Apprentice

Joined: 05 Jan 2002
Posts: 39

I can't return Environment.resultSet within a called function. It is not a valid correlation name - thats why I am confused!!

thanks!
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 » Problem using passthru returning cursor in called function
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.