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: 19243
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: 19243
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 All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts JCL to merge two files side by side DFSORT/ICETOOL 3
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts 3 files concatenated to 1 DFSORT/ICETOOL 2
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
Search our Forums:


Back to Top