Setting up a test environment
Before you begin
Previous step: Customizing the build scripts
About this task
The following COBOL source programs are provided.
- pbtest1.cbl - hello world
- pbtest2.cbl - source program uses copybook
- pbtest.cbl - source program calls subprogram
- pbtest3.cbl - subprogram called by pbtest.cbl
- copyone.cpy - copybook
- pbmain.link - sample link control file
Procedure
- Set the type attribute LANG to the value COBOL2 for each of the COBOL source programs listed above as described in Configuring the view elements.
- Set the type attribute LNKDECK to the value PBMAIN for the pbtest.cbl source program listed above as described in Configuring the view elements.
- If you want to test parameterized build from
a TSO Client environment, you need to add the PARMBUILD_SCRIPTS environment
variable to your TSO Client environment definition. The environment
variable should specify the location of the build script, such as:
PARMBUILD_SCRIPTS \\CCHOSTNAME\ccstg_d\Triggers.Where CCHOSTNAME is the hostname and ccstg_d\Triggers is the directory where the build script is installed. See Profile parameters for instructions. - If you want to test parameterized build from
a Rational® Developer for System z® environment, you need
to configure parameterized build for Rational® Developer for System z®, which involves the following steps:
- Setting the Parameterized Build preference in Rational® Developer for System z® to point to the directory where the parameterized build scripts are installed, such as: C:\ccstg_d\Triggers.
- Creating a ClearCase®-enabled project in Rational® Developer for System z® that has the same location as the ClearCase® VOB directory where the provided sample source programs are stored.
- If you want ClearCase® developers to be able to use these sample programs, place them in a shared directory.
Results
From the ClearCase® Explorer or Windows® Explorer:
- Submitting a single program
- Submitting a single program with a copybook
- Submitting multiple COBOL programs
- Submitting multiple COBOL programs linked into one module
From the TSO Client:
- Building a single program from TSO Client
- Uploading a copy member from TSO Client
- Building multiple programs from TSO Client
- Building multiple programs linked into one module from TSO Client
From the IBM® Rational® Developer for System z® or Eclipse platform: