Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
SEARCH is used in following cases:
The SEARCH statement is used to search a table for an element that satisfies a known condition.not like whether used in sequential files or indexed files.
The SEARCH statement allows you to perform a sequential search of a table. The OCCURS clause of the table description entry must contain the INDEXED BY phrase. If more than one index is specified in the INDEXED BY phrase, the first index is the controlling index for the table search unless you specify otherwise in the SEARCH statement.