Assuming you a batch application, you probably want to execute it under TSO batch. Here is some sample JCL from the DB2 Applciation Programming Guide:
//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
/*
You can also run programs under CICS, IMS, and the Call Attach Facility (whcih requres special coding), and a few other interfaces.