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.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.