Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: DFSORT - use the DSN of one of the input as output
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 Moderator


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

PostPosted: Thu Oct 06, 2005 12:53 am    Post subject:
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    Post subject: Re: DFSORT - use the DSN of one of the input as output
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 Moderator


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

PostPosted: Thu Oct 06, 2005 1:16 am    Post subject:
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    Post subject: Re: DFSORT - use the DSN of one of the input as output
Reply with quote

How about changing the merge to a sort?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Oct 06, 2005 1:59 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us