View previous topic :: View next topic
|
Author |
Message |
naveen_amudalapelly Warnings : 1 New User
Joined: 15 Oct 2004 Posts: 16
|
|
|
|
HI,
i have the requirement to compare data at different positions of two different data set and write the matched data in one file and unmatched data in another file.
both are fixed length files of same lRECL
say i have one customer no in file 1 from 20 to 29 and in match 1-9
FILE1 20:9
FILE2 1:9
FILE1 (20:9) SHOULD BE COMPARED WITH FILE2 (1:9) AND IF MATCHES WRITTEN IN FILE3 ELSE IN FILE4.
could you please provide this using pgm=sort.
Thanks and regards,
Naveen |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
The "Create files with matching and non-matching records" Smart DFSORT Trick shows techniques for doing this kind of thing for different situations:
www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
If you need more specific help, give the RECFM and LRECL of the input files, indicate whether file1 can have duplicates within it, indicate whether file2 can have duplicates within it, and show an example of the records in each input file (with duplicates if possible) and what you expect for output. |
|
Back to top |
|
|
|