COBOL · File status code

File Status 07

What does File Status 07 mean in COBOL?

An OPEN or CLOSE statement used the REEL/UNIT phrase against a file on a device that is not reel or unit medium (for example, a disk file instead of tape).

File Status 07IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

An OPEN or CLOSE statement used the REEL/UNIT phrase against a file on a device that is not reel or unit medium (for example, a disk file instead of tape).

Fix

Remove the REEL/UNIT phrase for non-tape files, or confirm the DD/device assignment actually points at tape if that phrase is required.

Pending source verification. Not yet checked against official documentation.

Related file status code