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

SQL RETURN CODE: 919


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Mar 31, 2012 10:37 pm
Reply with quote

ramangouda patil wrote:
Hi All,
Below is snippet form the spool output for couple of cursors. the second and third gave an error of -991 but the first shows 919.

[*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
* SQL RETURN CODE: 919 *
* ERROR OPENING CRS3E00 CSR *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
* SQL RETURN CODE: 991- *
* ERROR CLOSING CRS3E00 CSR *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
* SQL RETURN CODE: 991- *
* ERROR CLOSING CRS028 CSR *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* ][/code]


How do you relate "DECLARE E5100CR CURSOR" to "CRS3E00" in the above message extract?

Since 919 does not exist in DB2, you didn't get a 919 from an SQL statement. This is supported by the SQLSTATE being zero, rather than some value which would aid problem determination.

Did you try Dick Scherrer's suggestion?

If you want anything further here, you're going to have to cough-up relevant unedited code.
Back to top
View user's profile Send private message
ramangouda patil

New User


Joined: 09 Apr 2008
Posts: 39
Location: India

PostPosted: Wed Apr 04, 2012 8:17 pm
Reply with quote

Hello All,
We discarded the cursor approach and went with downloading of table data. The reason was this was a one time run requirement and a download was able to cater the need. Also on the cursor name question, I just changed the name of the cursor while posting it in this forum.The program had the same cursor name in the definition and while opening the cursor.

Thanks for all the help and apologies if I created a whole lot of confusion.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 04, 2012 8:24 pm
Reply with quote

Good to hear it is resolved - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top