What return code will SQLCODE will have?

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
User avatar
Gurugars
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

What return code will SQLCODE will have?

Post by Gurugars » Tue Sep 25, 2012 3:35 pm

Friends -

I happened to come across one problem today.
There is a table called ABCD. When I'm trying to update this table in background a trigger will be triggered to update another table PQRS.

Now, I encountered -903 error, could some one please tell me because of which event I got -903? ABCD update or Background triggered event PQRS update.

I am pasting the complete error message -

Code: Select all

SQLCODE:      -723                
DB2 ERROR OCCURRED...             
LAST ROUTINE:   700A-TSUPDATE-WFST
 DSNT408I SQLCODE = -723, ERROR:  AN ERROR OCCURRED IN A TRIGGERED SQL STATEMENT 	IN TRIGGER DBAXAT.TRWDHUA1. INFORMATION
         RETURNED: SQLCODE -913,                                              
         SQLSTATE 57033, MESSAGE TOKENS 00C900BA,00002002,DPNAM01Q.MWDL001Q, SECTION 	NUMBER 2
DSNT418I SQLSTATE   = 09000 SQLSTATE RETURN CODE                              
DSNT415I SQLERRP    = DSNXRUID SQL PROCEDURE DETECTING ERROR                  
DSNT416I SQLERRD    = -150  13172746  0  13228485  -673636351  12714050 SQL DIAGNOSTIC 	INFORMATION
DSNT416I SQLERRD    = X'FFFFFF6A'  X'00C9000A'  X'00000000'  X'00C9D9C5'  X'D7D92001' 	 X'00C20042' SQL DIAGNOSTIC 
         INFORMATION
Many Thanks in advance!
Guru:-)

You're never fully dressed without a smile :)

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Sep 25, 2012 5:35 pm

the -723 refers to the trigger encountering a problem during its activities.
the -913 (WTH is -903? learn to be more accurate!)
with an reason code of 00C900BA - find it here
with a type code of 00002002 - tablespace write class (also found in above linked pdf)

probably your table pqrs DPNAM01Q.MWDL001Q

now your question:
Now, I encountered -903 error, could some one please tell me because of which event I got -903? ABCD update or Background triggered event PQRS update.

you did not get a -903. all the info is provided in the error message:

Code: Select all

LAST ROUTINE:   700A-TSUPDATE-WFST
 DSNT408I SQLCODE = -723, ERROR:  AN ERROR OCCURRED IN A TRIGGERED SQL STATEMENT    IN TRIGGER DBAXAT.TRWDHUA1. INFORMATION
         RETURNED: SQLCODE -913,                                             
         SQLSTATE 57033, MESSAGE TOKENS 00C900BA,00002002,DPNAM01Q.MWDL001Q, SECTION    NUMBER 2, 
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others