Read Spool File
The Read Spool File element is a Referenceable element that is used for extracting data from a spool file for a job at a mainframe. The content can be used to verify that a program has written expected data to the spool file during execution. Only spool files created with the userid executing the test scenario are supported.
Each line of a spool file will always start with a space. This is often hidden when viewing the spool file in ISPF. Remember to consider the space if setting up verification expressions.
Add Read Spool File to the Test Scenario by dragging it from the tool palette. This opens the Insert a new Read Spool File element popup. Here are the fields available when setting up this element:
- ID - a unique name used to refer to output from this element to other elements in this Test Scenario. Reference to this ID by using the format ${myid}.
- Description - an optional description of the Test Element.
- Step Name - contains the stepname of the job.
- DD name - contains the ddname of the job step.
- Optional job ID - specifies a jobid from which the Read Spool File must be extracted. Normally this should not be used, and the spool file will be retrieved from the latest job executed from the test scenario.
- OK / Cancel - click on OK to save your element.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*