Compiling or assembling your program by using IBM® z/OS® Debugger Utilities

To compile your program, do the following steps:

  1. In panel EQA@PRIM, select 1. Press Enter.
  2. In panel EQAPP, select one of the following option and then press Enter.
    • 1 to compile a COBOL program.
    • 3 to compile a PL/I program
    • 4 to compile a C or C++ program
    • 5 to assemble an assembler program
  3. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1 for COBOL programs. Enter the following information in the fields indicated:
      • Project = prefix
      • Group= SAMPLE
      • Type=COBOL
      • Member=WPP1
    • EQAPPC3 for PL/I programs.
      • Project = prefix
      • Group= SAMPLE
      • Type=PLI
      • Member=WPP3
    • EQAPPC4 for C and C++ programs.
      • Project = prefix
      • Group= SAMPLE
      • Type=C
      • Member=WPP4
    • EQAPPC5 for assembler programs.
      • Project = prefix
      • Group= SAMPLE
      • Type=ASM
      • Member=WPP5
  4. If you are preparing an assembler program, enter the location of your CEE library in the Syslib data set Name field. For example: 'CEE.SCEEMAC'
  5. Enter '/' to edit options and specify a naming pattern for the output data sets in the field Data set naming pattern. Press Enter.
  6. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1A for COBOL programs.
    • EQAPPC3A for PL/I programs.
    • EQAPPC4A for C and C++ programs.
    • EQAPPC5A for assembler programs.
    Look at the panel to review the following information:
    • test compiler options
    • naming patterns for output data sets
    Press PF3 (Exit).
  7. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1 for COBOL programs.
    • EQAPPC3 for PL/I programs.
    • EQAPPC4 for C and C++ programs.
    • EQAPPC5 for assembler programs.
    Select "F" to process these programs in the foreground. Specify "N" for CICS® translator and "N" for Db2® precompiler. None of these programs contain CICS or Db2 instructions. Press Enter.
  8. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1B for COBOL programs.
    • EQAPPC3B for PL/I programs.
    • EQAPPC4B for C and C++ programs.
    • EQAPPC5B for assembler programs.
    Make a note of the data set name for Object compilation output. For a COBOL program, the data set name will look similar to the following name: prefix.SAMPLE.OBJECT(WPP1). You will use this name when you link your object modules. Press Enter.
  9. If panel EQAPPA1 is displayed, press Enter.
  10. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1C for COBOL programs.
    • EQAPPC3C for PL/I programs.
    • EQAPPC4C for C and C++ programs.
    • EQAPPC5C for assembler programs.
    Check for a 0 or 4 return code. Type a "b" in the Listing field. Press Enter.
  11. In panel ISRBROBA, browse the file to review the messages. When you are done reviewing the messages, press PF3 (Exit).
  12. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1C for COBOL programs.
    • EQAPPC3C for PL/I programs.
    • EQAPPC4C for C and C++ programs.
    • EQAPPC5C for assembler programs.
    Press PF3 (Exit).
  13. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1B for COBOL programs.
    • EQAPPC3B for PL/I programs.
    • EQAPPC4B for C and C++ programs.
    • EQAPPC5B for assembler programs.
    Press PF3 (Exit).
  14. One of the following panels is displayed, depending on the language you selected in step 2:
    • EQAPPC1 for COBOL programs.
    • EQAPPC3 for PL/I programs.
    • EQAPPC4 for C and C++ programs.
    • EQAPPC5 for assembler programs.
    Press PF3 (Exit).
  15. In panel EQAPP, press PF3 (Exit) to return to EQA@PRIM panel.

To link your object modules, do the following steps:

  1. In panel EQA@PRIM, select 1. Press Enter.
  2. In panel EQAPP, select L. Press Enter.
  3. In panel EQAPPCL, specify "F" to process the programs in the foreground. Then, choose one of the following options, depending on the language you selected in step 2
    • For the COBOL program, use the following values for each field: Project = prefix, Group= SAMPLE, Type=OBJECT, Member=WPP1
    • For the PL/I program, use the following values for each field: Project = prefix, Group= SAMPLE, Type=OBJECT, Member=WPP3
    • For the C program, use the following values for each field: Project = prefix, Group= SAMPLE, Type=OBJECT, Member=WPP4
    • For the assembler program, use the following values for each field: Project = prefix, Group= SAMPLE, Type=OBJECT, Member=WPP5
  4. In panel EQAPPCL, specify the name of the other libraries you need to link to your program. For example, in the field Syslib data set Name, specify the prefix of your CEE library: 'CEE.SCEELKED'. Press Enter.
  5. In panel EQAPPCLB, make a note of the data set name in the Load link-edit output field. You will use this name when you modify a setup file. Press Enter.
  6. If panel EQAPPA1 is displayed, press Enter.
  7. In panel EQAPPCLC, check for a 0 return code. Type a "V" in the Listing field. Press Enter.
  8. In panel ISREDDE2, review the messages. After you review the messages, press PF3 (Exit).
  9. In panel EQAPPCLC, press PF3 (Exit).
  10. In panel EQAPPCLB, press PF3 (Exit).
  11. In panel EQAPPCL, press PF3 (Exit).
  12. In panel EQAPP, press PF3 (Exit) to return to EQA@PRIM panel.