This article helps understand the difference between two similar file status messages.
Problem:
How do you distinguish between the following similar file status messages?
File status 37 is:
An OPEN operation has been tried on a file which does not support the open mode specified in the OPEN statement.
File status 9/37 is an RTS error 37:
File Access Denied
Resolution:
File status 37 consists of the characters "3" and "7" (hexadecimal 3937).
File status 9/37 is the characters "9" and "7" (hexadecimal 3937).
File status 37 is usually a programming error, such as OPEN EXTEND of an indexed file.
File status 9/37 is usually a runtime error caused by a conflict between file and/or directory permissions and user access rights.