Rational Developer for System z


Debug the DB2 application in TSO mode

This lesson describes how to debug the application in TSO mode.
You can debug a typical batch application by pointing to a load module in the z/OS Projects or Enterprise Projects view and selecting Debug Application. Debugging a DB2® application that runs in TSO mode is done in a slightly different way. You need to use the JCL Procedure ELAXFTSO, and you need to override the SYSTSIN card in that procedure.

To debug the DB2 application in TSO mode, do these steps:

  1. Open the JCL Job Card and Data Set properties page of the property group.
  2. Depending on how your z/OS® system is configured, you may need to add a JCLLIB card to point to the DB2 data sets.
  3. Change the runtime options to handle running a DB2 application in TSO mode. On the Runtime Options page, edit the RUN step and enter ELAXFTSO in the Procedure Name entry field. This is the JCL procedure that invokes IKJEFT01.
  4. Override the SYSTSIN card in the Additional JCL entry field.
    //******* ADDITIONAL RUNTIME JCL HERE ******
    //TSOGO.SYSTSIN   DD  *
    DSN SYSTEM(DB2SUBSYSTEMNAME)
    RUN PROGRAM(RDZDB2) -
    PLAN(PLANNAME) -
    PARMS('/TEST(,,,TCPIP&&9.87.65.43%8001:*)') -
    LIB('USERID.LOAD')
    /*
  5. Close and save the property group.
  6. Right-click the load module in the z/OS Projects or Enterprise Projects view and select Debug Application.

Feedback