Rollback when job finishes with warnings

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsscholar
Premium Member
Premium Member
Posts: 195
Joined: Thu Oct 19, 2006 2:45 pm

Rollback when job finishes with warnings

Post by dsscholar »

I am inserting data in DB2 table and I have set transactional handling as 0 to rollback in case the load doesnt finish sucessfully. My question is whether rollback will take place only if the job fails/aborts or even if the job finishes with warnings ?

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

Post by chulett »

The job has to Abort to initiate the rollback.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsscholar
Premium Member
Premium Member
Posts: 195
Joined: Thu Oct 19, 2006 2:45 pm

Post by dsscholar »

Thanks Craig..
tagnihotri
Participant
Posts: 83
Joined: Sat Oct 28, 2006 6:25 am

Post by tagnihotri »

Although just to point out, you may have cases of dataloss even if the job finishes with warning 8)

dsscholar wrote:Thanks Craig..
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

Do get rid of such a dataloss case, make sure your job aborts even when it generates a warning, if that's what you want.
Success consists of getting up just one more time than you fall.
tagnihotri
Participant
Posts: 83
Joined: Sat Oct 28, 2006 6:25 am

Post by tagnihotri »

Aborting job even when you get any warning hmmmmm

You need to be preety sure if you need this, as in many cases I have seen dataloss with warnings but its not always. So you may end up aborting your job in half way even when you get "informative" warnings.
loveojha2 wrote:Do get rid of such a dataloss case, make sure your job aborts even when it generates a warning, if that's what you want.
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

loveojha2 wrote:Do get rid of such a dataloss case, make sure your job aborts even when it generates a warning, if that's what you want.
Just a typo

To get rid of such a dataloss case, make sure your job aborts even when it generates a warning, if that's what you want.
Success consists of getting up just one more time than you fall.
Post Reply