[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.



>     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