|
View previous topic :: View next topic
|
| Author |
Message |
chtrisa
New User

Joined: 19 Dec 2006 Posts: 12 Location: chennai
|
|
|
|
I have 2 flat files. i want to compare 2 files and list the different records.
for an ex:
input files
File1
aaa
bbb
ddd
hhh
File2
bbb
sss
ddd
zzz
the output must be
aaa
hhh
how to do this can any one suggest me |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
To get the result you want, please search in the DFSORT forum.
Your question has been solved there. Hopefully, you are not restricted to using FileAid. . . |
|
| Back to top |
|
 |
student_mf
New User

Joined: 15 Jun 2007 Posts: 23 Location: pune
|
|
|
|
| Hi the scenario presented by chtrisa cant be done using file-aid?. |
|
| Back to top |
|
 |
krisprems
Active Member

Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
chtrisa
you can do this using DFSORT. |
|
| Back to top |
|
 |
student_mf
New User

Joined: 15 Jun 2007 Posts: 23 Location: pune
|
|
|
|
| Hi krisprems is there any possibility that what chtrisa wanted can be done in file-aid with out using dfsort. |
|
| Back to top |
|
 |
krisprems
Active Member

Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
student_mf
I dont have much hands on File-Aid and so can't answer your question |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Are you just curious or is there a business reason for:
| Quote: |
| is there any possibility that what chtrisa wanted can be done in file-aid with out using dfsort |
Why would you not use the sort? |
|
| Back to top |
|
 |
lalitha_gld
New User
Joined: 12 Jul 2006 Posts: 24
|
|
|
|
I assume that you would know to do a basic compare using Fileaid option '10'.
To get the required output:
1. Mention file1 as OLD dataset & file2 as NEW dataset.
2. Under 'Compare - Criteria Options' set 'Modify print defaults' to 'y'.
3. Set 'Print DELETED records ===> Y '
4.Execute compare.
You will get the records from the file1 which are missed in file2.
Thanks,
Lalitha. |
|
| Back to top |
|
 |
student_mf
New User

Joined: 15 Jun 2007 Posts: 23 Location: pune
|
|
|
|
| thanks lalitha i got the required output |
|
| Back to top |
|
 |
|
|