Page 1 of 1

read and write to same seq file

Posted: Mon Oct 09, 2006 10:29 am
by samsuf2002
Hi All
i am running a job which has two seq files 1 and 2 passing through CDC and the output file is pathed same as seq file 1 its working fine but i want to knw is it the right way will it be a problem later like deadlock or something.any suggestions will be appreciated

Posted: Mon Oct 09, 2006 10:48 am
by kcbland
If you have any simultaneous reading and writing to the same file you will have issues. Because your job has a syncronization point ahead of the output to the file, this doesn't necessarily occur. It's best to avoid your design anyway because you lose re-start capability, as you've destroyed the original file.

Posted: Mon Oct 09, 2006 4:05 pm
by ray.wurlod
It's dangerous. A better approach would be output to file 3 then, after the job has completed, delete file 1 and rename file 3 to file 1.[/i]