View previous topic :: View next topic
|
Author |
Message |
kinatingopi
New User
Joined: 30 Apr 2014 Posts: 6 Location: USA
|
|
|
|
Hi,
I am trying to execute a DB2 COBOl program thru xpediter and seeing that the commits are done even though I exit the xpediter in the middle of execution. Does xpediter commit a record as soon as the SQL is executed or should it wait until we come out of xpediter normally (without doing an EXIT in the middle of execution).
Thanks, Gopi |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3075 Location: NYC,USA
|
|
|
|
Quote: |
I am trying to execute a DB2 COBOl program thru xpediter and seeing that the commits are done even though I exit the xpediter in the middle of execution. Does xpediter commit a record as soon as the SQL is executed |
You have self answered the question.
Quote: |
should it wait until we come out of xpediter normally (without doing an EXIT in the middle of execution).
|
It really depends on COMMIT, if it is successful then changes would reflect in the DB. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Xpediter does not COMMIT. It traces your program. Your program does the COMMIT. If it doesn't do a COMMIT then you should read up about COMMIT as used/not issued in a program. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
The normal behaviour of any DB2 program, whether running under Expeditor or not, is to Commit changes when the program terminates normally.
If you do not want your changes committed you need to take some action during your debugging session, such as forcing an Abend. |
|
Back to top |
|
|
kinatingopi
New User
Joined: 30 Apr 2014 Posts: 6 Location: USA
|
|
|
|
Thanks everyone for the reply.. It was my bad. I shud have to done a QUIT from xpediter instead of 'EXIT' as the former is abnormal exit, but later is normal exit (which caused the commit to occur). |
|
Back to top |
|
|
|