IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DFSORT data destruction problem


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
P.RAJESH
Currently Banned

New User


Joined: 20 Mar 2008
Posts: 54
Location: chennai

PostPosted: Thu Mar 27, 2008 10:02 am
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
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Mar 27, 2008 1:14 pm
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: 8797
Location: Welsh Wales

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

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 27, 2008 7:49 pm
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 Developer


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

PostPosted: Thu Mar 27, 2008 9:42 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top