Under Windows, you might receive the following error message when you use SAS/ACCESS Interface to DB2 to connect to a DB2 database:
ERROR: Error allocating CLI environment.
ERROR: Error in the LIBNAME statement.
The error occurs in the DB2 client when users attempt to execute a command or operation without having the proper authority.
To resolve this permission problem, administrators should make sure that users have both Read and Execute access to all DB2 objects through the operating system. You can set those permissions, as follows: