Skip to main content

Problem:

Getting a 9/037 error using CBL_READ_DIR and CBL_GET_CURRENT_DIRECTORY

Resolution:

As the error code suggests, this is a permissions problem.

The directory in question can be found using a system trace utility such as truss.  In the truss trace on AIX will be something like:

statx("./../../../../", 0x2FF216D8, 76, 0)      Err#13 EACCES

Err#13 EACCES means that search permission is denied for one component of the path prefix.  The path prefix in this example is "./../../../../", i.e. 4 levels up from the directory where the program is running.

Full information on statx can be found at the IBM site (http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/libs/basetrf2/statx.htm).

truss is available on AIX, SCO UnixWare and Solaris.  On HP systems there's tusc and Tru64 uses trace, neither of which are included in the main distributions.  Linux (Red Hat and SuSE) use strace.

Old KB# 4103