Previous Topic: Components Used with the EXCLUDE CommandNext Topic: Operand Definitions


FIND Command

The FIND command searches for lines that either contains a string or for lines that do not contain a string. You can use this command when displaying or editing certain components.

When editing a procedure definition, FIND can locate statements the compiler marked as errors. FIND applies only to the field name when editing a report definition, working data, or parameter definition.

You can direct FIND forward or backward. It can locate and display a specific number of lines. Use the COLUMNS operand or the SET EDIT BOUNDS command to restrict the FIND to an inclusive range of columns.

Once you find a line, you can specify FIND without the search string to locate the next line. You can specify any of the optional operands with subsequent FIND commands without specifying the search string. If you do not specify any optional operands with subsequent FIND commands, the operands specified on the previous FIND is used as default values.

This command has the following format:

     [1  ] [INCLUDE] [FORWARD ] [/string/]
FIND [n  ] [EXCLUDE] [BACKWARD] [ERROR   ]
     [ALL]                               
     [LINE[S] startline [endline]]
     [COLUMNS startcolumn [MAX       ]]
     [                     [end‑column]]