Importing test file data as stub

You can import test data into the Test Case Editor from a QSAM data set.

Before you begin

To import test data from the QSAM data set into a test entry data record, the Developer for z/OS® server must be version 9.1.1 or later.

About this task

The Import Test File Data as Stub option is to import test data from the QSAM data set into a test entry data record for File description entry. Import Test File Data as Stub is enabled if the COBOL or PL/I source program contains file I/O.

Procedure

  1. In the Test Case Editor, click the Import test data toolbar button Import Test Data toolbar button, and select Import Test File Data As Stub from the menu.
    The Import Test Data window opens.
  2. Select the data parameter into which you want to import data, and then click Browse.
  3. In the Browse for File window, navigate to the QSAM data set that contains the data you want to import, select that file, and click OK.
  4. In the Number of imported records field of the Import Test Data window, specify the number of records you want to import into the test case, and then click OK.
    ZUnit generates JCL and submits a job to import the data from the data set into a new test entry. The data is added to records of the parameter that you chose in the Import Test Data window.