autocommit in IMS



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

autocommit in IMS

Postby praveen123 » Thu Aug 27, 2009 1:49 am

Hello,

I have a query regarding autocommit in IMS.
Will a commit be issued when a program logically ends. For example, program A calls B. Program B updates an IMS database. When the control comes back from B to A will an autocommit be issued?
praveen123
 
Posts: 2
Joined: Thu Aug 27, 2009 1:40 am
Has thanked: 0 time
Been thanked: 0 time

Re: autocommit in IMS

Postby dick scherrer » Thu Aug 27, 2009 2:58 am

Hello and welcome to the forum,

Returning from a call is not a logical end of a program. As far as the system is concerned it is all one process - just a different bit of code executing.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: autocommit in IMS

Postby praveen123 » Thu Aug 27, 2009 12:29 pm

Hi,

Thanks for your reply.

Just 1 more query. When the call is returned, isnt it a logical end to program B, because the control is out of B now?
praveen123
 
Posts: 2
Joined: Thu Aug 27, 2009 1:40 am
Has thanked: 0 time
Been thanked: 0 time

Re: autocommit in IMS

Postby dick scherrer » Fri Aug 28, 2009 3:50 am

Hello,

No.

What has happened is quite similar to a PERFORM.

The process branched to some code and then came back. B never "had control".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IMS DB/DC