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 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. See Changing the properties of a resource.
  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. Enter ELAXFTSO in the Run 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. Once the properties are set, you can right-click the load module in the z/OS Projects view and select Debug Application.

Terms of use | Feedback



This information center is powered by Eclipse technology. (http://www.eclipse.org)