Jopaz 1.2.0 | Jopaz for Db2 | Preparing Programs for Static Execution | Step 4 – Transfering DBRM from USS to a PDS/PDSE Member
 
Step 4 – Transfering DBRM from USS to a PDS/PDSE Member
Use the IBM utility IKJEFT01 to execute the TSO OCOPY copy command in the batch job.
Enter the created and customized DBRM module from Step 3 as input in this step. This only needs to be transferred to a PDS/PDSE dataset in order to be able to execute BIND PACKAGE.
JCL Example
// SET CLASS='HELLO'
// SET DBRMPATH='/opt/softwareag/jpz/jpz-compiler/dbrm'
//*-------------------------------------------------------------------
//CPYDBRM EXEC PGM=IKJEFT01,
// COND=((0,NE,CUSTOM.JAVAJVM),(0,NE,GENPROF.JAVAJVM))
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INDD) OUTDD(OUTDD) BINARY
/*
//INDD DD PATH='&DBRMPATH/&CLASS'
//OUTDD DD DISP=SHR,DSN=&DBRMLIB(&CLASS)