Since an integer function may be used wherever an arithmetic expression may be used, this extension allows you to compare an index-name to an integer or numeric function.
Table 1 shows valid comparisons involving index-names and index data items.
| Operands Compared | Index-Name | Index Data Item | Data-Name | Literal | Arithmetic Expression |
|---|---|---|---|---|---|
| Index-Name | Compare occurrence number | Compare without conversion | Compare occurrence number with data-name | Compare occurrence number with literal | Compare occurrence number with arithmetic expression |
| Index Data Item | Compare without conversion | Compare without conversion | Not permitted | Not permitted | Not permitted |