|
Could you use embedded SQL, select the records into your cursor usingfield2,
"WHERE field2 <> 'X' AND field1 IN ('A','B','C')"? That should get you
the exact subset of the records in which you are interested.
Alternatively, what about an logical/index that is sorted first by
then field1, and do something like this (off the top of my head - notAND
tested!)
SETLL ('X':'A') logicalFile;
READ file;
DOW (field2 = 'X' AND (field1 = 'A' OR field1 = 'B' OR field1 = 'C')
NOT %eof(logicalFile));
// process file
READ file;
ENDDO
HTH,
Adam
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.