Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
DFSORT data destruction problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
P.RAJESH

New User


Joined: 20 Mar 2008
Posts: 4
Location: chennai

PostPosted: Thu Mar 27, 2008 10:02 am    Post subject: DFSORT data destruction problem
Reply with quote

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
View user's profile Send private message
References
PostPosted: Thu Mar 27, 2008 10:02 am    Post subject: Re: DFSORT data destruction problem Reply with quote

dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 883
Location: germany

PostPosted: Thu Mar 27, 2008 1:14 pm    Post subject:
Reply with quote

This has been asked and answered many times.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2153
Location: Brussels once more ...

PostPosted: Thu Mar 27, 2008 1:19 pm    Post subject:
Reply with quote

And I for one would NEVER do that
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 5911
Location: 221 B Baker St

PostPosted: Thu Mar 27, 2008 7:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 3768
Location: San Jose, CA

PostPosted: Thu Mar 27, 2008 9:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1