Invoke an IBM utility program from JCL that calls Db2 related applications
The scenario of invoking an IBM® utility program like IKJEFT01 (or IKJEFT1A, IKJEFT1B) and passing the COBOL program that makes the actual Db2® calls in the SYSTSIN card is supported.
Example:
//jobname JOB USER=MY DB2ID
//GO EXEC PGM=IKJEFT01,DYNAMNBR=20
//STEPLIB DD DSN=prefix.SDSNEXIT,DISP=SHR
// DD DSN=prefix.SDSNLOAD,DISP=SHR
⋮
//SYSTSPRT DD SYSOUT=A
//SYSTSIN DD *
DSN SYSTEM (ssid)
RUN PROG (SAMPPGM) -
PLAN (SAMPLAN) -
LIB (SAMPPROJ.SAMPLIB) -
PARMS ('/D01 D02 D03')
END
/*
There are other scenarios that may be supported only through extensibility API feature, if using another custom utility program that has a similar behavior as IKJEFTxx.