COBOL/400 Language Help

INVALID, KEY, or imperative-statement-1

If the comparison is not satisfied by any record in the file, an invalid key condition exists; the value of the file position indicator is undefined, and the INVALID KEY imperative-statement, if specified, is processed.

The INVALID KEY phrase must be specified for files in which an appropriate USE procedure is not specified, or if no EXCEPTION/ERROR procedure is explicity or implicitly specified.

Click here for further information about the invalid key condition.


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