COBOL · File status code

File Status 35

What does File Status 35 mean in COBOL?

An OPEN was issued for INPUT, I-O, or EXTEND against a file that does not exist at the location named in the ASSIGN clause, and the file was not declared OPTIONAL.

File Status 35IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

An OPEN was issued for INPUT, I-O, or EXTEND against a file that does not exist at the location named in the ASSIGN clause, and the file was not declared OPTIONAL.

Fix

Confirm the DD or dataset is allocated before the step runs, check the cataloged name matches SELECT ... ASSIGN exactly, and verify the job did not skip a prior GDG generation. On some platforms, this code is also returned when the file organization declared does not match the actual file format (see below).

Pending source verification. Not yet checked against official documentation.

Related file status code