IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to compare 2 files in fileaid?


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chtrisa

New User


Joined: 19 Dec 2006
Posts: 12
Location: chennai

PostPosted: Fri Apr 27, 2007 4:00 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 29, 2007 7:56 am
Reply with quote

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
View user's profile Send private message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Tue Jun 19, 2007 12:50 pm
Reply with quote

Hi the scenario presented by chtrisa cant be done using file-aid?.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jun 19, 2007 4:42 pm
Reply with quote

chtrisa
you can do this using DFSORT.
Back to top
View user's profile Send private message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Fri Jun 22, 2007 12:39 pm
Reply with quote

Hi krisprems is there any possibility that what chtrisa wanted can be done in file-aid with out using dfsort.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Wed Jul 11, 2007 1:16 pm
Reply with quote

student_mf
I dont have much hands on File-Aid and so can't answer your question
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jul 11, 2007 8:04 pm
Reply with quote

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
View user's profile Send private message
lalitha_gld

New User


Joined: 12 Jul 2006
Posts: 24

PostPosted: Tue Jul 17, 2007 1:27 pm
Reply with quote

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
View user's profile Send private message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Tue Jul 17, 2007 10:19 pm
Reply with quote

thanks lalitha i got the required output
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top