|
View previous topic :: View next topic
|
| Author |
Message |
hiravibk Warnings : 1 Active User
Joined: 14 Dec 2008 Posts: 107 Location: India
|
|
|
|
Hi,
I have a cobol program say PROG A which updates records in a VSAM file. It calls a DB2 program which updates a DB2 table for this record.
If the calling program PROG A updates a record in the VSAM file, and calls the DB2 program. Now after the DB2 program when the control goes over to PROG A, will the commit happen before the control goes to PROG A or will the commit happen at the end of the program?
Sorry if this is a repost. |
|
| Back to top |
|
 |
mallik4u
New User
Joined: 17 Sep 2008 Posts: 75 Location: bangalore
|
|
|
|
hi,
Where is the COMMIT coded. Is it in calling program or called program? |
|
| Back to top |
|
 |
hiravibk Warnings : 1 Active User
Joined: 14 Dec 2008 Posts: 107 Location: India
|
|
|
|
| I am sorry, I didnt mention that earlier, but I meant if the commit is not coded at all. |
|
| Back to top |
|
 |
mallik4u
New User
Joined: 17 Sep 2008 Posts: 75 Location: bangalore
|
|
|
|
| i think data will get updated permanently once the control goes back to the calling program. This might not be true for CICS programs. |
|
| Back to top |
|
 |
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
| I think not. so now hiravibk doesn't have a clue |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Running a test or 2 comes to mind. . .
Let us know what happens when you run some tests. . . |
|
| Back to top |
|
 |
Gijz
New User
Joined: 27 Nov 2007 Posts: 9 Location: The Netherlands
|
|
|
|
| At the (normal) end of prog A, assuming prog A is the main program. This is true for batch as well as for CICS. |
|
| Back to top |
|
 |
|
|