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

Facing -901 SQL error


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

New User


Joined: 18 Jul 2003
Posts: 39
Location: delhi

PostPosted: Tue Jun 09, 2009 3:29 pm
Reply with quote

Iam unable to find the exact cause of -901 SQL error. The SQL guide says "UNSUCCESSFUL EXECUTION CAUSED BY A SYSTEM ERROR THAT DOES NOT PRECLUDE THE SUCCESSFUL EXECUTION OF SUBSEQUENT SQL STATEMENTS".

Could someone please elaborate on this or tell me the exact reason for -901?

Thanks in advance.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Tue Jun 09, 2009 3:41 pm
Reply with quote

I would start by looking at the sql that received the -901.

manual says something about 0 length sql statements
and sql statements that exceed the maximum length.
Back to top
View user's profile Send private message
tarun_bhardwaj

New User


Joined: 18 Jul 2003
Posts: 39
Location: delhi

PostPosted: Wed Jun 10, 2009 12:01 pm
Reply with quote

Thanks for your reply Dick.
We are at DB2 ver 8.1 . The problem is encountered when a commit statement is executed after an update statement in batch but the same query runs fine in an online scenario. Also, the update/commit statements work fine at times and fails with -901 at times. This seems to be a DB2 system problem. I suppose the a ticket needs to be opened with IBM in this regard so that they can provide an appropriate PTF to fix this. Please correct me if Iam wrong.

Thanks in advance.
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 U0016 error in JCL JCL & VSAM 4
No new posts python on z/OS error no encoding decl... Testing & Performance 0
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
Search our Forums:


Back to Top