FOR

FOR

Top  Previous  Next

 

The FOR keyword used in a SEARCH command specifies that the search strings will be specified on the command line.

 

 

Format

 

FOR string1 string2 ...

 

 

Without this keyword, the SEARCH command prompts for the strings for which it is to search. The FOR keyword allows these strings to be specified on the command line.

 

The FOR keyword must be followed by at least one search string. Although not recommended, other query processor keywords may appear between the search strings but all literal values appearing later in the command that would otherwise be treated as record ids will be used as search strings. Where a search string includes a space, a quote or other characters that may cause ambiguity, the string should be enclosed in quotes.

 

 

Example

 

SEARCH BP FOR PARSER.H NO.CASE

 

This command builds a list of records in the BP file containing the string "PARSER.H" regardless of casing.

 

 

See also:

NO.CASE, ALL.MATCH, NO.MATCH, SEARCH, STRINGS