You may be asking the wrong question. It appears that you want to consider two fields from each "logical record". If you could parse your data file first into records and then into fields, your strange requirement would disapear.
Bill
Comment on Re: Print a previous to previous of a matching line