I want to search a sequential file using FileAid. I want to specify more than one value for a single serach field.
Case: I have a column/field FRUIT in a file and the distinct values available are Apple, Grape, Mango, Banana etc. I want to get all the records where the value is Apple and Mango. I know how to get all the records for Apple but not where more than one value is given. Can anyone help me! Thanks
If you are using the Formatted selection criteria then the following would work;
= 'Apple' or 'Mango'
If you are using Unformatted selection criteria then the following would work;
Position 10, Length 5, EQ 'Apple,mango'
Note that the comma acts as an OR. Alternatively you can split this command over two lines;
Position 10, Length 5, EQ 'Apple'
OR Position 10, Length 5, EQ 'Mango'
I tend to use File-AID all the time because it allow me to build some quite powerful queries. The best way to develop these are start simple queries, with small files and then add to them to make sure you get the results you are looking for.