Jopaz for Adabas Runtime Configuration
This section describes the runtime configuration of Jopaz for Adabas.
To compile the sample Adabas COBOL program with Jopaz, you can use the compile job and environment from the default Jopaz installation. You can find the example program PGMADAOP.cbl at /jpz-ada-installer/jpz-ada-cobol-templates.
In the following steps, the installation guide uses HLQ.SAG.JPZ vrs.JOBS as the Jopaz job library. This is the PDSE created for the native Jopaz installation. For reference to the Jopaz directory in the USS, the installation guide uses /opt/softwareag/jpz.
1. Copy the sample source PGMADAOP.cbl into the source directory:
$ cd /opt/softwareag
$ cd jpz-ada-installer/jpz-ada-cobol-templates
$ cp PGMADAOP.cbl "//’HLQ.SAG.JPZvrs.SRCE’"
2. Copy the JVM configuration library into the conf directory:
$ cd /opt/softwareag
$ cd jpz-ada-installer/jpz-ada-uss-templates
$ cp template_jvm_ada_conf.sh /opt/softwareag/jpz/jpz-compiler/conf/
3. Copy the execution environment, the database definition file, and the execution job into Jopaz dataset. This is the Jopaz job library which was created for the Jopaz installation and mentioned in the variable input file. The installation instructions use HLQ.SAG.JPZ vrs.JOBS.
$ cd /opt/softwareag
$ cd jpz-ada-installer/jpz-ada-jcl-templates
$ cp * "//’HLQ.SAG.JPZvrs.JOBS’"
4. Adjust the database ID and the SVC number.
Rename the member HLQ.SAG.JPZ vrs.JOBS(DB11111) to fit the database id you plan to access. For example, use DB00145 for DBID 145. Then edit and change the values in the member according to the site Adabas installation.
5. Check the member HLQ.SAG.JPZ vrs.JOBS(AJZENV) and adjust the parameters for the Adabas Services for Java if necessary. Initial execution is also possible with the standard parameters. For a detailed description of these options, please check the official Adabas Services for Java documentation.
6. Adjust the paths in JZOS configuration HLQ.SAG.JPZ vrs.JOBS(ADACONF) if you use other than the default:
readonly jpzlocation=/opt/softwareag/jpz/
"$jpzlocation"jpz-compiler/conf/template_jvm_ada_conf.sh
7. Adjust the paths in JVM configuration template_jvm_ada_conf.sh located at /opt/softwareag/jpz/jpz-compiler/conf if you use other than the default:
export JPZ_INSTALLATIONPATH=/opt/softwareag/jpz/
export JAVA_HOME=/usr/lpp/java/J8.0_64
SAG=/opt/softwareag/jpz-ada-installer
ADALNKR=AJZvrs.LOAD
8. Adjust the DSN paths in samples execute job HLQ.SAG.JPZ vrs.JOBS(ADAEXEC) if you use other than the default:
//* Adabas Service for Java front end procedure
// SET JVMADA=AJZJVMP
//* JZOS configuration for Jopaz for Adabas runtime
// SET CONFIG=HLQ.SAG.JPZvrs.JOBS(ADACONF)
//* Jopaz license file
// SET JPZLIC=HLQ.LICENSES(JPZBT11)
//* Adabas DB attributes file
// SET DDCARD=HLQ.SAG.JPZvrs.JOBS(DB11111)
//* Adabas Service for Java parameter file
// SET AJZENV=HLQ.SAG.JPZvrs.JOBS(AJZENV)
//* Adabas Service for Java load library
// SET AJZLIB=AJZvrs.LOAD
//* Adabas load library
// SET ADALIB=ADAvrs.LOAD
and
//STEPLIB DD DSN=HLQ.MLC137.MVSLOAD,DISP=SHR
// DD DSN=HLQ.JPZvrs.MVSLOAD,DISP=SHR