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

DB2TEP2


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saikat

New User


Joined: 23 Jun 2008
Posts: 26
Location: pune

PostPosted: Fri Jun 21, 2013 10:29 am
Reply with quote

Hi,

I know if I run multiple sql insert queries using DB2TEP2 utility and in case any query fails in between all records upto that point get committed and rest all get failed.

I would like to know if there is similar utility which issues auto roll back in above case so that in case of failure no records get committed.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 21, 2013 12:00 pm
Reply with quote

Quote:
I know if I run multiple sql insert queries using DB2TEP2 utility


Are you sure if you are reffering to correct program name??

Hope it was typo for DSNTEP2
Back to top
View user's profile Send private message
saikat

New User


Joined: 23 Jun 2008
Posts: 26
Location: pune

PostPosted: Fri Jun 21, 2013 12:16 pm
Reply with quote

Its DB2TEP2, IBM's utility
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 21, 2013 12:25 pm
Reply with quote

Could you please share the code which you have tried keen to know about DB2TEP2 ( Not sure if thats an alias) or may be link to the DB2TEP2?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Jun 21, 2013 12:28 pm
Reply with quote

Well, looking at the DB2 Utility manual's index there is no DB2TEP2 but there is DSNTEP2. Also, there is no reference to IBM manuals in the Google search. There appears to be a DB2TEP2 on the CBTTape but then it would not be IBM.
Back to top
View user's profile Send private message
saikat

New User


Joined: 23 Jun 2008
Posts: 26
Location: pune

PostPosted: Fri Jun 21, 2013 3:04 pm
Reply with quote

Does DSNTEP2/DSNTEP4 issue rollback in case of sql failure?
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 21, 2013 3:39 pm
Reply with quote

What happen when you tried ?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jun 21, 2013 5:14 pm
Reply with quote

DSNTEP2 and DSNTEP4 are written in PL/I, so if someone in your shop has the necessary skills, heesh could easily add a control parameter specifying commit frequency.
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: Fri Jun 21, 2013 7:03 pm
Reply with quote

Hello,

Quote:
I would like to know if there is similar utility which issues auto roll back in above case so that in case of failure no records get committed.
No. Once committed, the data is committed and no longer a candidate for a ROLLBACK.
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 -> JCL & VSAM

 


Search our Forums:

Back to Top