Note: Alternatively, you may not want to specify such details in a file. In which case, you can either set them as environment variables, or set the password variable from your COBOL program by prompting the user to enter a password and then executing:
SET ENVIRONMENT "A_DB2_PASSWD" TO user-entry