Preparing the JCL (Scripting)
Performance Test provides a series of samples to aid you in running the utility and writing your own exit programs (see the below figure). Locate these samples in the Performance Test install library (typically INSTALL). Member $EHS3IDX is an electronic index of these samples.
Sample to Run EHS3COPY Utility and Aids for Authoring Exit Programs
Member | Description |
|---|---|
EHS3CJA | JCL to assemble exit program written in Assembler |
EHS3CJC | JCL to compile exit program written in C |
EHS3CJCB | JCL to compile exit program written in COBOL |
EHS3COPY | JCL to search and select/copy sessions |
EHS3COP | JCL to copy sessions by terminal |
EHS3RJA | JCL for using exit program written in Assembler |
EHS3RJC | JCL for using exit program written in C |
EHS3RJCB | JCL for using exit program written in COBOL |
EHS3SCAN | JCL to search strings in a repository file |
EHS3SXA | Source code for sample exit program written in Assembler |
EHS3SXC | Source code for sample exit program written in C |
EHS3SXCB | Source code for sample exit program written in COBOL |
EHS3XDA | Layout of data passed to the exit program from EHS3COPY (Assembler) |
EHS3XDC | Layout of data passed to the exit program from EHS3COPY (C) |
EHS3XDCB | Layout of data passed to the exit program from EHS3COPY (COBOL) |
JCL examples
This section contains two examples of JCL that invokes EHS3COPY. The first is a simple scan and copy job. The second invokes a user-exit to scan the repository.
The following example invokes EHS3COPY to scan the repository and copies the activity from terminal VT15* through VT18* into a new repository. It also copies a user ID from the specified time frame with the specified terminal. The COPY USER(USERA1) example line continues to the next line. The hyphen denotes the continuation. Also notice that there is a space between the SESSION_FROM() and TERMINAL() parameters.
The next example incorporates a user exit that scans the repository for sessions containing the text “green chev”, then copies those sessions to a new repository.