[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: compare 2 flat files.
- Subject: Re: compare 2 flat files.
- From: "Wanko, Christopher G, CFCTR" <apollo@ATT.COM>
- Date: Wed, 11 Nov 1998 11:25:08 -0500
> i am opening file 1 and 2 for reading and file 3 for writing. i
> wanted to compare first two files, record wise (line wise)
> and write the records which are not in file 2 in file 3.
Are you sure you have to do this in SQR? On UNIX platforms, you can run
fgrep or a nifty sort routine to winnow out the rows you wish... much faster
than building a program from scratch... and if you use MVS, SyncSort would
dispense with this problem rather quickly.
-Chris