Step 1 – Using the Jopaz SQLJ Generator JVMCOMP
Execute the Jopaz compiler Java class com.jopaz.compiler.Pcc with the IBM JZOS Batch Launcher and use the SQLJ-specific compiler properties file COMOPTS included in the Jopaz installation package.
Compile Properties
# COMPILER SETTINGS
# There must be TWO SPACES before a line break "\"
jopaz.compiler.options=-b -cod1 -crv -la \
-od=/opt/softwareag/jpz/jpz-compiler/output -sqlj -csdb2 -csqq2
JCL Example
//JVMCOMP EXEC PROC=&JVM64,REGSIZE=512M,
// JAVACLS='com.jopaz.compiler.Pcc',
// ARGS=&CLASS.
//JPZSRC DD DISP=SHR,DSN=&SRCLIB.(&CLASS.)
//JPZOPT DD DISP=SHR,DSN=&OPTLIB.(COMOPTS)
//SYSLIB DD DISP=SHR,DSN=&CPYLIB
//STDENV DD DISP=SHR,DSN=&CONFIG
//STEPLIB DD DISP=SHR,DSN=&MLCLIB
// DD DISP=SHR,DSN=&ASMLIB
//LICJPZBT DD DISP=SHR,DSN=&JPZLIC