Compiling your program by using IBM z/OS Debugger Utilities

Note: This section is not applicable to IBM® Developer z/OS® (non-Enterprise Edition) or IBM Z and Cloud Modernization Stack (Wazi Code).

z/OS Debugger Utilities provides several utilities than can help you compile your programs and start z/OS Debugger. The steps described in this topic apply to the following category of compilers and assemblers:

  • Enterprise PL/I
  • Enterprise COBOL
  • C/C++
  • Assembler

If you are using IBM z/OS Debugger Utilities to prepare your program and start z/OS Debugger, read Examples: Preparing programs and modifying setup files with IBM z/OS Debugger Utilities, which describes how to prepare a sample program and start z/OS Debugger by using IBM z/OS Debugger Utilities. After you read the sample and understand how to use IBM z/OS Debugger Utilities, do the following steps:

  1. Start IBM z/OS Debugger Utilities.
  2. Type in "1" to select Program Preparation, then press Enter.
  3. Type in the number that corresponds to the compiler you want to use, then press Enter.
  4. Type in the information about the program you are compiling and select the appropriate options for the CICS® and Db2®/SQL fields.

    If the program source is a sequential data set and the Db2 precompiler is selected, make sure the DBRMLIB data set field in panel EQAPPC1B, EQAPPC2B, EQAPPC3B, EQAPPC4B, or EQAPPC5B is a partitioned data set with a member name. For example, DEBUG.TEST.DBRMLIB(PROG1).

    Type in the backslash character ("/") in the Enter / to edit options and data set name patterns field, then press Enter.

  5. Using the information you collected in Table 1, fill out the fields with the appropriate values. After you have made all the changes you want to make, press PF3 to save this information and return to the previous panel.
  6. Review the choices you made. Press Enter.
  7. Verify your selections, then press Enter.
  8. After the compilation is done, a panel is displayed. If there were errors in the compilation, review the messages and make any changes. Return to step 1 to repeat the compilation.
  9. Press PF3 until you return to the Program Preparation panel.
  10. In the Program Preparation panel, type in "L", then press Enter.
  11. In the Link Edit panel, specify whether you want the link edit to run in the foreground or background. Specify the name of other libraries you need to link to your program. After you are done making all your changes, press Enter.
  12. Verify any selections, then press Enter.
  13. After the link edit is done, if there were errors in the link edit, review the messages and make any changes. Return to step 1 to repeat the process.
  14. Press PF3 until you return to the main IBM z/OS Debugger Utilities panel.

After you complete this task, see Update your library and promotion process.