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

IMS Transaction COMMIT/ROLLBACK


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
callmeavi14

New User


Joined: 18 Jan 2010
Posts: 3
Location: India

PostPosted: Sun Jan 24, 2010 10:55 pm
Reply with quote

Hi All,

I am working on an application. The application gets the Database update request through distributed online applications through the IMS Transactions.

This requests are processed through COBOL applications and updates the DB2 tables. The requests are dealt by a single COBOL routine(Say program A, COBOL DB2), as part of my requirement i am supposed to trigger a subroutine B(COBOL DB2). If any update through program A goes wrong then i am supposed to trigger subroutine B to create an Audit Trail.

Problem: If there is any issue in subroutine A then the whole transaction is rolled back. In that case the subroutine B updates will also be rolled back as that is triggered through A. In subroutine B i am updating only 1 DB2 table. Is there anyway i can sustain my updates(Subroutine B) only for that particular table.

Due to specific requirements i cant put any explicit COMMIT/ROLLBACK in either program A or subroutine B.

Any pointers??
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: Mon Jan 25, 2010 1:04 am
Reply with quote

Hello,

There is no provision to "keep some" / "throw away some" in the commit/rollback environment. The entire design depends on an entire "unit of work".

If you are not permitted to issue the proper commit/rollback to discard the problem yet keep the audit, you will have to do the audit in some other way. IMHO, not a good idea. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Feb 03, 2010 4:37 pm
Reply with quote

May be you can "unload" the DB2 table to a QSAM and update the file instead of DB2-table when needed, and update the file without any check-point logic in program...but it's a nasty way of doing things.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts TWA size of the CPLT transaction CICS 0
No new posts Invoke IMS transaction from .NET IMS DB/DC 1
No new posts COOLGEN - DB2. -927 error while initi... DB2 8
Search our Forums:

Back to Top