| Author |
Message |
P.RAJESH
New User
Joined: 20 Mar 2008 Posts: 4 Location: chennai
|
|
|
|
hi all,
I have a sort step, sort in containing two ps files ( take example AAA.TEST.TEST1,BBB.TEST.TEST2) and sortout ps file is AAA.TEST.TEST1
both input files conatinng large amount of data(millions of records).
Is any data destruction problem will occur ?
(i mean same file using as input and output ) |
|
| Back to top |
|
 |
References
|
Posted: Thu Mar 27, 2008 10:02 am Post subject: Re: DFSORT data destruction problem |
 |
|
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 883 Location: germany
|
|
|
|
| This has been asked and answered many times. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 2153 Location: Brussels once more ...
|
|
|
|
| And I for one would NEVER do that |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 5911 Location: 221 B Baker St
|
|
|
|
Hello,
There is NO reason to write over one of the input files.
When there is an abend, you have destroyed that input and will have to re-create it. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 3768 Location: San Jose, CA
|
|
|
|
You SHOULD NOT use the same data set for input and output for a COPY or MERGE application.
You can use the same data set for input and output for a SORT application, but it's generally a bad idea since you can lose the data set if an error occurs (e.g I/O error). Of course, if you don't care if the data set is destroyed (e.g. you have a backup) then you can do it. We call it a "suicide sort". |
|
| Back to top |
|
 |
|
|