Setting compiler and runtime environments

To generate a ZUnit test case, you must configure options in a property group.

About this task

Certain compiler and runtime options are required for compiling and running a ZUnit test case. You can define these options in a property group.

Procedure

  1. Configure the following options for remote resources:
    1. In the COBOL tab, set the following property group options:
      Property Group Page Option Instructions
      COBOL > Runtime Environments CICS Select this check box if the COBOL program contains EXEC CICS statements. If you are using the separate CICS translator, go to the COBOL tab, select Procedures and Steps. Enable ELAXFCOT.
      Db2 Select this check box if the COBOL program contains EXEC SQL statements.
      COBOL > Procedures and Steps Compiler options SOURCE LIB
      Tip: Specify CICS('NOLINKAGE') if you want to test a sub program called from the parent CICS program by the CALL statement.
      Copy libraries <FELHLQ>.SFELSAMP
      Tip: Specify the fully qualified data set name for the <FELHLQ>.SFELSAMP partitioned data set. Contact your systems administrator for the data set name.
      Support Error Feedback Select this check box and specify this data set qualifier for compiler errors: <HLQ>.ERRCOB
  2. Configure the following options for local resources:
    1. In the COBOL tab, select Local Compiler Options.
    2. Specify NOLINKAGE if you want to test a sub program called from the parent program by the CALL statement.
    3. If the program contain EXEC CICS statements, select CICS options.
    4. Select the Source contains EXEC CICS statements check box.
      The CICS options field is filled with the default value such as CICSNT -.IBMCOB - adesvp.
    5. If you are using the separate CICS translator, go to the Local Compiler Options settings, and remove the strings in the CICS options field.
    6. If your program uses CICS include files, add the PDS that contains the CICS copy libraries to the SYSLIB list.

What to do next

These settings are used while analyzing the test target program. If you modify them, reanalyze the test target program. To reanalyze a test target program:
  1. Close the Test Case Editor.
  2. Select the test target program, and then right-click and select z/OS Automated Unit Testing Framework (ZUnit) > Generate Test Case.
  3. In the Create/modify a test case window, click Options, and select Always analyze.
  4. Click OK.
  5. Click Next.