Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
if not abend while inserting records in a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Balasudher

New User


Joined: 27 Oct 2006
Posts: 3

PostPosted: Mon Oct 30, 2006 9:27 am    Post subject: if not abend while inserting records in a table
Reply with quote

Hi,
Could you tell while inserting records in a table,
for successful ececution whts the code and steps we need to follow
Back to top
View user's profile Send private message

sbpati

New User


Joined: 11 Oct 2006
Posts: 11

PostPosted: Mon Oct 30, 2006 4:49 pm    Post subject: Re: if not abend while inserting records in a table
Reply with quote

Hi,

After the SQL insert statement according to your requirement you can proceed further with the following statements.Hope this fulfills your requirement.

EVALUATE SQLOCODE
WHEN 0
SET ROW-INSERTED TO TRUE
INSERT SOME PROCESS HERE.......
WHEN -803(DUPLICATES)
SET ROW-NOT-INSERTED TO TRUE
INSERT SOME PROCESS HERE..........
WHEN OTHER
PERFORM DB2-ERROR PROCESS....
END-EVALUATE
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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 3 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us