Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Invalid key condition

The invalid key condition may occur after the execution of a DELETE, READ, REWRITE, START or WRITE statement.

How execution continues after the input/output statement has been executed depends on the I-O status displayed. The table below shows how/where the program run is continued in each case. ’-’ stands for phrases which are not relevant for selecting the type of continuation.

I-O status after the statement indicates

INVALID KEY
imperative-statement-1

NOT INVALID KEY
imperative-statement-1

USE procedure

Specified

Not specified

Specified

Not specified

Declared

Not declared

successful

-

-

imperative-statement-2

End of the statement

-

-

invalid key condition

imperative-statement-1

Continuation as in 'USE procedure' column for other error condition

-

-

-

-

other error condition

-

-

-

-

use-procedure

Program abortion

imperative-statement-1, imperative-statement-2 and use-procedure are executed in accordance with the rules for the statements specified there. Depending on the type of statement, the program run is either continued in another part of the program or at the end of the input/output statement.