SEARCH
Search the source for a string
WSupported on Windows
|
USupported on Unix
|
VSupported on OpenVMS
|
|
SEARCH string SEARCH string line# count SEARCH/ALL string
Arguments
string
Searches from the current line for string.
string line# count
Searches count lines for string, starting with source line line#.
/ALL string
Searches all lines within the module for string.
Discussion
The SEARCH command searches the current source module for the specified string.
If line# is “>”, the current debug entry line is used. If line# is “.”, the current source line is used. Only lines within the current module are searched, so a line# of 1 searches from the module’s first line and a large line# searches the last line. After listing, the current source line is set to the next line to be listed. The current source line is set to the entry line on each debug entry.
Examples
The following example searches the current module for the string “var1.” All source lines that contain “var1” are displayed.
SEARCH var1