Coordinate Unit of Work

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
CA4T
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 15, 2013 11:27 am

Coordinate Unit of Work

Post by CA4T »

Can DataStage coordinate a unit of work that exists on mainframe and open systems?

Here is what I am trying to ask... Let's say you have a job that is going to remove records from a mainframe DB2 table and insert them onto an open source Greenplum table. So you might have a job design that does something like the following:
1. Selects a record from a DB2 table
2. Deletes that record from the DB2 table
3. Insert that record into a Greenplum table

But, the insert to the open systems greenplum fails... and I want to rollback the delete to the mainframe DB2 -- would I have to code for this? Can I make these the same unit of work and have DataStage not commit until all parts are successful.

Any ideas?
Argus Health
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Have you checked out the Distributed Transaction stage? I believe it can handle that situation.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

It should handle that except that the version 11.3 connectivity guide for the Distributed Transaction stage indicates support equals Yes for DB2, Oracle, and MQ Connector stages and support equals No for ODBC and Teradata Connector stages. I haven't tested it myself. Sometimes the documentation is not current. Test it to see if it will work and/or check with IBM. It sounds like you need the Distributed Transaction stage to support the ODBC Connector stage.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply