Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cursor with return options for Stored procedure query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
raaj_help

New User


Joined: 05 Jul 2006
Posts: 1

PostPosted: Thu Sep 14, 2006 2:44 pm    Post subject: Cursor with return options for Stored procedure query
Reply with quote

having any idea about cursor with return options for stored procedure??
please advice.
Back to top
View user's profile Send private message

red_roses

New User


Joined: 31 Oct 2005
Posts: 27

PostPosted: Thu Sep 14, 2006 11:20 pm    Post subject:
Reply with quote

Cursor with the 'WITH RETURN' option is used in case of stored procedures.

If a cursor is defined with this clause. the SP only have to Open the cursor. and the resultset is returned to the calling pgm.

no need to Execute the 'fetch cursor' statment in this case
Back to top
View user's profile Send private message
damodar

New User


Joined: 10 Aug 2006
Posts: 1

PostPosted: Fri Sep 22, 2006 2:04 am    Post subject: Re: Cursor with return options for Stored procedure query
Reply with quote

Hi,

I am receiving -805 error(bind related) when I try to fetch data in the main program(calling) from a cursor that is opened in stored procedure. I have received 466 code as expected after returning from stored procedure but having problem in fetch. Can you help me to resolve this issue?

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us