Previous Topic: ExamplesNext Topic: Built-In tables


Use of the NOT FOUND Condition

The following examples illustrate the use of the NOT FOUND condition in the value list of a code table.

Example 4a

When NOT FOUND (a condition to be acted upon) is used in the encode column of a code table, the following occurs:

VALUES ARE
( 100          MATHEMATICS
  200          ENGLISH
  300          SCIENCE
  NOT FOUND    INVALID-DEPT-NO  ) 

Example 4b

When NOT FOUND is used in the decode column of the Code Table's value list, the following processing occurs:

VALUES ARE
( 100          MATHEMATICS
  200          ENGLISH
  300          SCIENCE
  000          NOT FOUND   )

Example 4c

When NOT FOUND is used in both the encode and decode column of a code table's value list as shown, the following processing occurs:

VALUES ARE
( 100          MATHEMATICS
  200          ENGLISH
  300          SCIENCE
  000          NOT FOUND
  NOT FOUND    INVALID-DEPT-NO  )