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
 

 

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 Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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