View previous topic :: View next topic
|
Author |
Message |
SARANYA DEVI
New User
Joined: 20 Mar 2007 Posts: 10 Location: Chennai
|
|
|
|
Code: |
//SORTIN DD DSN=DSNAME1,DISP=SHR
// DD DSN=DSNAME2,DISP=SHR
//SORTOUT DD DSN=DSNAME3,DISP=(NEW,.....
//SYSIN DD *
SORT FIELDS=(......)
//
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Like what? A concatenated input? Yes.
SORT FIELDS=... Yes. |
|
Back to top |
|
|
SARANYA DEVI
New User
Joined: 20 Mar 2007 Posts: 10 Location: Chennai
|
|
|
|
WHETHER IT WILL PERFORM THE SAME FUNCTION AS MERGE???
THEN WHATS THE DIFFERENCE B/W THEM... |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
MERGE would look like this:
Code: |
...
//SORTIN01 DD DSN=DSNAME1,DISP=SHR
//SORTIN02 DD DSN=DSNAME2,DISP=SHR
//SORTOUT DD DSN=DSNAME3,DISP=(NEW,.....
//SYSIN DD *
MERGE FIELDS=(......)
|
But in order to use MERGE, the records in DSNAME1 would have to already be in sorted order by the key, and the records in DSNAME2 would have to already be in sorted order by the key. With SORT, the records in DSNAME1 and DSNAME2 can be in any order.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
|