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

SQLCODE = -20100 SQLSTATE = 56059 Trigger Error


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

New User


Joined: 11 May 2010
Posts: 16
Location: South Africa

PostPosted: Mon Apr 29, 2013 7:19 pm
Reply with quote

Hi all,

I am trying to run the following statement and have read up and I know that something is wrong on my where clause according to the manuals, but not sure what. some expert help would be appreciated. Here is the Statement I am executing using spufi:

Code:
CREATE TRIGGER STRDEVN.CS00504I                             
    AFTER INSERT ON STRDEVN.ORDR_ONL_RCVD                   
    REFERENCING NEW AS N                                   
    FOR EACH ROW                                           
    MODE DB2SQL                                             
         WHEN (OOR_ORDR_STA = 1                             
         AND   OOR_LUD_ID   = 'CMAX')                       
    BEGIN ATOMIC                                           
      CALL CS00504(N.OOR_REV_CRE_TMSTMP                     
                  ,N.OOR_ORDR_STA);                         
    END:                                                   
                                                           
COMMIT:     


Please tell me what you can see.

thanks and much appreciated.
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: Mon Apr 29, 2013 9:44 pm
Reply with quote

Hello,

You don't have a WHERE . . . ?

What error(s) are being shown?
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon Apr 29, 2013 11:49 pm
Reply with quote

Please post error message
Back to top
View user's profile Send private message
Heindba

New User


Joined: 11 May 2010
Posts: 16
Location: South Africa

PostPosted: Tue Apr 30, 2013 1:36 pm
Reply with quote

Apologies, this is the Error message that I am getting:

---------+---------+---------+---------+---------+---------+---------+---------+
DSNT408I SQLCODE = -20100, ERROR: AN ERROR OCCURRED WHEN BINDING A TRIGGERED
SQL STATEMENT. INFORMATION RETURNED: SECTION NUMBER : 1 SQLCODE
-203, SQLSTATE 42702, AND MESSAGE TOKENS OOR_ORDR_STA
DSNT418I SQLSTATE = 56059 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXORSO SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = -630 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'FFFFFD8A' X'00000000' X'00000000' X'FFFFFFFF'
X'00000000' X'00000000' SQL DIAGNOSTIC INFORMATION
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 30, 2013 1:57 pm
Reply with quote

Quote:
-203, SQLSTATE 42702


and ... what happened when You looked Yourself at the manuals to understand the SQLCODE and the SQLSTATE

even a simple google search would have provided You with an answer faster than a forum
( just a plain cut and paste of the quoted string )
Back to top
View user's profile Send private message
Heindba

New User


Joined: 11 May 2010
Posts: 16
Location: South Africa

PostPosted: Tue Apr 30, 2013 2:16 pm
Reply with quote

My bad, I read the start of the error message where it contains the -20100 of the message so I went searching for that.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top