Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SQLCODE = -20100 SQLSTATE = 56059 Trigger Error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: SQLCODE = -20100 SQLSTATE = 56059 Trigger Error
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

Site Director


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

PostPosted: Mon Apr 29, 2013 9:44 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Apr 30, 2013 1:57 pm    Post subject: Reply to: SQLCODE = -20100 SQLSTATE = 56059 Trigger Error
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us