Setting runtime environments

To generate a ZUnit test case for a PL/I CICS program, you must configure options in a property group.

About this task

Certain compiler and link 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 PL/I tab, select Runtime Environments. Select the CICS check box.
    2. If you are using the separate CICS translator, go to the COBOL tab, select Procedures and Steps. Enable ELAXFPLT.
  2. Configure the following options for local resources:
    1. In the PL/I tab, select Local Compiler Options.
    2. Select CICS options.
    3. Select the Source contains EXEC CICS statements check box.
      The CICS options field is filled with the default value such as MACRO CICS('SUBSYS(CICSTNT)' edf debug) MACRO.
    4. If you are using the separate CICS translator, go to the Local Compiler Options settings, and remove the strings in the CICS options field.
    5. If your program uses CICS include files, add the PDS that contains the CICS include 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.
, ,