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

DFSORT - use the DSN of one of the input as output


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anita_lao

New User


Joined: 06 Oct 2005
Posts: 7

PostPosted: Thu Oct 06, 2005 12:28 am
Reply with quote

Would like to use the DSN of one of the input file as output DSN.
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 Oct 06, 2005 12:53 am
Reply with quote

Are you asking if you can use the same data set for SORTIN and SORTOUT? Is the data set VSAM or non-VSAM? Are you trying to do a sort, a merge or a copy?

If that's not what you're asking, please explain more clearly what it is you want to do.
Back to top
View user's profile Send private message
anita_lao

New User


Joined: 06 Oct 2005
Posts: 7

PostPosted: Thu Oct 06, 2005 12:57 am
Reply with quote

Doing a merge. One of input is dsn.g0030v00, output is dsn.g0030v00. I can create a temporary file with the merge, delete the file and then copy the temporary file to the old file name. Is there a way of doing the three steps in one step.
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 Oct 06, 2005 1:16 am
Reply with quote

You cannot use the same data set for input and output for a MERGE.
Back to top
View user's profile Send private message
anita_lao

New User


Joined: 06 Oct 2005
Posts: 7

PostPosted: Thu Oct 06, 2005 1:18 am
Reply with quote

How about changing the merge to a sort?
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 Oct 06, 2005 1:59 am
Reply with quote

If you change the MERGE to a SORT then you can use the same data set for SORTIN and SORTOUT. But ... (1) if anything goes wrong (e.g. I/O) error, you may lose your data set so be sure you have a backup or can recreate it. (2) MERGE is more efficient then sort. So a SORT may actually be less efficient then the MERGE and COPY. Note also that SORT requires workspace whereas MERGE and COPY don't.
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top