Also, consider whether or not setting the USER_PATH variable would be useful in your setup situation. For security reasons, it is best to set the password variable from your COBOL program by asking the user to enter a password and then executing:
SET ENVIRONMENT "A_DB2_PASSWD" TO user-entry
Possible variables define error map file location, locking method, commit count, commit timing, and BINARY/CHAR type conversion.