COBOL · File status code

File Status 43

What does File Status 43 mean in COBOL?

In sequential access mode, the last I/O statement executed for the file before a DELETE or REWRITE was not a READ.

File Status 43IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

In sequential access mode, the last I/O statement executed for the file before a DELETE or REWRITE was not a READ.

Fix

Sequential DELETE and REWRITE both require the target record to have been established by an immediately prior READ. Add the READ back into the logic, or switch to random access with an explicit key.

Pending source verification. Not yet checked against official documentation.

Related file status code