Example: Modifying JCL that invokes an assembler Db2 program running in a batch TSO environment

The following example shows a portion of JCL that invokes an assembler Db2® program and the modifications you make to this portion of the JCL to start z/OS® Debugger.

Original sample JCL Modified sample JCL
//RUN EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSTSIN DD *
 DSN SYSTEM(Db2_subsystem_id) 
 RUN  PROGRAM(MYPGM) PLAN(MYPGM) -
      PARM('program-parameters') 
 END
/*
// ... other DD statements as needed ...
// ... for TSO and the application ...
//RUN EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSTSIN DD *
 DSN SYSTEM(Db2_subsystem_id) 
 RUN  PROGRAM(EQANMDBG) PLAN(MYPGM) -
      PARM('program-parameters') 
 END
/*
//EQANMDBG DD *
MYPGM,TEST(,,,VTAM%user-id:)
/*
// ... other DD statements as needed ...
// ... for TSO and the application ...