Step 5 – DBRM Binding of SQLJ Serialized Profile with BIND
Bind the generated DBRM module to Db2 using the Db2 BIND PACKAGE command. This step must be completed when both -automaticbindis set to NO and -genDBRM is specified in Step3. For more information about the Db2 BIND PACKAGE command, refer to the IBM Db2 documentation.
JCL Example
// SET CLASS='HELLO'
// SET COLL=TSTJPZ
// SET ISO=CS
// SET DB2SSID=<JPZ_DB2_SSID>
// SET DB2NAME=<JPZ_DB2_NAME>
// SET DBRMPATH='/opt/softwareag/jpz/jpz-compiler/dbrm'
//*-------------------------------------------------------------------
//BIND EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=4096K,
// COND=((0,NE,CUSTOM.JAVAJVM),(0,NE,GENPROF.JAVAJVM),
// (0,NE,CPYDBRM))
//STEPLIB DD DISP=SHR,DSN=SYS1.DSN1310.SDSNLOAD
//DBRMLIB DD DISP=SHR,DSN=&DBRMLIB
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *,SYMBOLS=JCLONLY
DSN SYSTEM(&DB2SSID)
BIND PACKAGE(&DB2NAME..&COLL) -
MEM(&CLASS) -
ENCODING(273) -
ISOLATION(&ISO) RELEASE(COMMIT) EXPLAIN(NO) -
ACTION(REPLACE) APPLCOMPAT(V12R1M510)
END
/*