View previous topic :: View next topic
|
Author |
Message |
vikrant85
New User
Joined: 05 Dec 2008 Posts: 8 Location: pune
|
|
|
|
I need to compare 2 Files with the sort/compare fields at differnt positions. I need to get an output file having non-duplicate records and one output file containing dupliocate records.
Field Positions for Input file1 (4-8)
Field Positions for Input file2 (10-15) |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Please post some sample input and output records using "Code" tag with file-positions of key fields in both the files, input/output file attributes etc. |
|
Back to top |
|
|
vikrant85
New User
Joined: 05 Dec 2008 Posts: 8 Location: pune
|
|
|
|
I can use SYNCTOOL, ISRSUPC
File1-12110000
22410001
10002
file2 -12110002
12210003
The Sort keys are shown in bold.I want to get first 2 records of file 1 and second record of file2 in 1 output file and the duplicate record in second output file |
|
Back to top |
|
|
vikrant85
New User
Joined: 05 Dec 2008 Posts: 8 Location: pune
|
|
|
|
Key fiels are file 1(4-8)
File2(10-15) |
|
Back to top |
|
|
vikrant85
New User
Joined: 05 Dec 2008 Posts: 8 Location: pune
|
|
|
|
vikrant85 wrote: |
Key fiels are file 1(4-8)
File2(10-14) |
|
|
Back to top |
|
|
vikrant85
New User
Joined: 05 Dec 2008 Posts: 8 Location: pune
|
|
|
|
file1-
aaa10000
bbb10001
ccc10002
File2-
ccc 10002
ddd 10003
Output file1
aaa10000
bbb10001
ddd10003
output File 2
ccc10002
Key Fieds file1 (4-8)
Key Fields File2 (10-14) |
|
Back to top |
|
|
|