Setting Up the User Environment

To configure the client environment for Database Connectors, you usually use an ACUFH configuration file.

The minimum settings required would be the A_DB2_LOGIN, A_DB2_PASSWD, and A_DB2_DATASOURCE variables; refer to ACUFH Configuration File Variables for additional variables you can include.

You use the A_CONFIG environment variable to identify the ACUFH configuration file, which allows you to create your own personalized copy of the file, to avoid impacting other users.

If you are concerned about including passwords in a configuration file, you can set details such as A_DB2_PASSWD in your COBOL program or environment. The following syntax is an example of how you can set a variable within your code:

SET ENVIRONMENT A_DB2_PASSWD TO user-entry

See To Set Up The User Environment for more information.