ILE COBOL Language Reference

VARYING Phrase

index-name-1
One of the following actions applies:

When the VARYING index-name-1 phrase is omitted, the first (or only) index-name for identifier-1 is used for the search.

identifier-2
Must be either an index data item or an elementary integer item. During the search, one of the following actions applies:

Figure 22 illustrates a Format 1 SEARCH operation containing two WHEN phrases.

Figure 22. Format 1 SEARCH with Two WHEN Phrases

REQTEXT


*
These operations are included only when called for in the
statement.

**
Control transfers to the next sentence, unless the imperative statement
ends with a GO TO statement.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]