Authentication Using a Trusted Context
To use a trusted context when authenticating against the database, you must set the Jopaz Runtime property jopaz.jdbc.datasource as follows:
jopaz.jdbc.datasource=JPZDataSourceTrustedContext
This is not part of the standart Jopaz setup, so you must set this manually. The runtime properties are set in the RUNOPT member of the Jopaz JOBS library.
Creating a Trusted Connection
If you do not have a trusted connection established or you want to create a new one, you must use the TRUSCONT JCL job. To use the job successfully, you need to have administrative rights to the database, or DBADMAUTH permissions with option GRANT set.
Before you submit the job, open it and make sure that all parameters are set correctly. They are already set according to the jpz_variable_input_file.txt file during Jopaz installation. If there are differences, you must adjust the job.
Submit the job to create the trusted context. If the job has been executed without an error message, a new trusted context is created.
Note:
If you execute TRUSCONT for the first time without a Trusted Context with this name previously existing, the job ends with an RC=0008, because the DROP step of the possibly existing Trusted Context cannot be executed. This behaviour is acceptable and you do not have to take any actions.