Hello,
I have a job which writes some data into a table as well as a sequential file.
The property 'file update mode' is set to 'Overwrite'.
There is a check in one of the transformers to abort the job if a certain constraint condition succeeds. This check is done to abort the job when it is run twice. Now my problem is, even when the job aborts, the file which was created by the last run gets overwritten . Is there a way to not overwrite the file in case the job aborts?
Any help would be much appreciated.
If the issue is not clear/if you would like to know more details, please let me know
Cheers!
Sequential File: Overwrite problem
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 5
- Joined: Sat Apr 17, 2010 10:56 am
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
Right, in some fashion you'd need to preserve the original file. You could use an After Job routine to check the INTERIM status and, if the job was aborting, swap old back for new. Or, as noted, write to a new name and if the job was going to finish normally, rename the new name to the old name.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 5
- Joined: Sat Apr 17, 2010 10:56 am