New Member.

Error 9/057

Using Cobol 2.2 on Suse Linux 11 sometimes receive error 9/057 and i dont know the meaning of this error.

I search the entire file status description and nothing, this forum and nothing.

The source program includes $set(RM) in the first line because the original program where develop with RMCobol.

My questions is, what is error 9/057 and what situation produce this message?

Thank you in advance,

Enrique Vera.

1 Reply
Micro Focus Expert
Micro Focus Expert

Hello Enrique:

Here is a link into the documentation:


It says (in part):

... If your program is set to return RM/COBOL file status codes ... the extended file status reported may initially seem incorrect ... the second byte of the reported error code needs to be converted from binary to ASCII. For example, if an error of 9/051 is reported, convert 051 to its ASCII character equivalent, which is 3 (0x33 in hexadecimal); therefore, the true RM/COBOL file status is actually 93.

To figure out 9/057, consult the ASCII chart here:


Binary 57 (hex 39) is equivalent to the ASCII character "9".  So the actual status is 9/9, which in RM means "Record is locked".  This file status is equivalent to a Micro Focus file status 9/068.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.