Setting VSAM file entry for COBOL
In the Test Case Editor window, you can set file organization and record key for a COBOL VSAM file.
Before you begin
The Test Case Editor opens in table format with rows that represent parameters in a data record and columns that represent test entries.
About this task
The Test Case Editor displays data records for a COBOL source program and any subroutines or dependent files that are discovered when the source program is parsed by the ZUnit parser, which is based on the COBOL importer. The data records are displayed in table format.
For a VSAM file, in the PIC column, VSAM displays for a
VSAM file, and File Organization (SEQUENTIAL, INDEXED, and RELATIVE) displays in
the USAGE column when the source program is opened in the Test
Case Editor. Specify the VSAM file organization in the File
Organization column. Refer to the following Test Case Editor window for more
information.

- Entry sequential data set (ESDS)
- Relative record data set (RRDS)
- Key sequenced data set (KSDS)
To open the Test Case Editor, select a source program in the Remote Systems or z/OS Projects view, and then click . ZUnit analyzes the source program file, generates a test case, and opens the test case in the Test Case Editor.
You can generate stub programs simulate the VSAM file. If Use test data is selected in the Set File Test Type dialog box, the STUB program is generated.
You can use an existing file to conduct the unit test of the VSAM file I/O. By specifying various attributes you can choose to use the user-allocated VSAM file instead of the automatically generated VSAM file.