IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cursor with return options for Stored procedure query


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts DB2 Image Copy DFSMS MGMTCLAS Partial... DB2 2
No new posts SFTP Return Codes TSO/ISPF 2
No new posts purge jobs with return code 0 and ret... JCL & VSAM 6
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
Search our Forums:


Back to Top