Commit after job aborts

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
rupeshg
Premium Member
Premium Member
Posts: 60
Joined: Thu Dec 22, 2005 6:02 am
Location: United Kingdom

Commit after job aborts

Post by rupeshg »

Hi

This query is related to DataStage mainframe job. The job reads from a DB2 table and performs inserts in different tables in one job. The commit frequency in Job Properties is set to 0, meaning that it should commit after all the rows are processed else rollback.

But recently I've observed that if the job aborts it does not rollback the rows.

Example:
Source table- A
Target table - B and C (inserts in both table)
scenario- insert in B first then in C (C is an audit table)
problem- cannot insert into B as its related parent table is empty and is not known until run.
Output- job aborts, for referential integrity but one row is inserted in table C (which it should not have inserted)

Now, if the job aborts it should not have inserted any row in either of the target tables. Could someone please tell me why this happened? This is just one example; my friend had another experience where 1 million records were inserted instead of rolling back.

Regards
Rupesh
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You're certain both B & C output links (assuming there are two) are set to a Transaction Size of 0?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply