Phase 2 - Demonstrating pre-initialisation
Below are the links to the three elements used to exploit pre-initialisation.
- The REXX routine used as the driver.
The REXX routine simply uses LINKPGM to invoke the program ASMPIPI once to build the LE enclave. It then invokes ASMPIPI multiple times to execute the same COBOL program as in Phase 1, before executing ASMPIPI one last time to close the LE enclave.
- The Assembler program invoked from REXX
This is effectively middleware which builds an LE enclave, executes a COBOL program, and terminates the LE enclave, all based on a parameter passed to it.
- The Job Control Language (JCL) used for the test.
Batch jobs were used for all test runs to aid debugging as and when necessary.