Compiling your program by using IBM z/OS Debugger Utilities
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:
- Start IBM z/OS Debugger Utilities.
- Type in "1" to select Program Preparation, then press Enter.
- Type in the number that corresponds to the compiler you want to use, then press Enter.
- 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 panelEQAPPC1B
,EQAPPC2B
,EQAPPC3B
,EQAPPC4B
, orEQAPPC5B
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.
- 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.
- Review the choices you made. Press Enter.
- Verify your selections, then press Enter.
- 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.
- Press PF3 until you return to the Program Preparation panel.
- In the Program Preparation panel, type in "L", then press Enter.
- 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.
- Verify any selections, then press Enter.
- 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.
- 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.