How to get started on debugging Cobol programs using RDz
banerjee 120000KSAF Visits (3651)
If you are a new user of Rational Developer for System z (RD/z), this document is intended to help you get started on debugging Cobol programs on z/OS. The example shown here is for a simple Cobol program for a batch runtime environment.
It is assumed that you have installed RD/z (for example RDZ 9.0) on your client platform, and have set up connection to the RD/z host component using Remote System Explorer.
The images show in this document are from from RD/z client. It is assumed that you are working on an RD/z Eclipse client IDE and are familiar with navigation on the IDE.
Step 1: Verify that debug Listener is configured and operational
Switch to Debug Perspective:
Click on UI Daemon Listener:
Typically the listener will be listening on port 8002.
Step 2: Set the property group for the program to be debugged
In this example we select program MYMAIN.cbl in a z/OS project .
In the property group, set the normal Cobol compile settings, and select the Run tab
Step 3 - Select the program and debug
To debug the program you will create a JCL file for compile link and go. the go step will contact the listening daemon.
In this case the JCL is in a member named MYMAIN in MAHADEV.BATCH.JCL
After the generation of JCL is complete, you may submit it to launch the debugger.
This will take you to the interactive debug window.