Standard Test Screen – Environments Menu - Option 1
The Standard Environment Test screen (Environments Menu) shown in following figure is used to specify the standard environment parameters. Batch programs that process QSAM or VSAM files, batch programs that issue third-party database calls (IMS/DB, ADABAS, TOTAL, TIS, SUPRA, DATACOM/DB, and System 2000), and batch programs that issue EXEC SQL (Db2) statements can be executed in this environment.
Standard Environment Test Screen
COMMAND ===>
COMMANDS: SEtup (Display Setup Menu)
PROFile (Display Profile Selection)
TEST SELECTION CRITERIA:
Program ===> SQL
Entry Point ===>
Load Module ===>
Initial Script ===>
Post Script ===>
PARM ( Caps = YES ) ===>
File List/JCL Member ===>
Preview Files? ===> NO
Code Coverage Test? ===> NO (YES, NO, TDO) System Flow? ===> NO
Is This a DB2 Test? ===> NO Plan ===> System ===>
Press ENTER to process or enter END command to terminate
The fields on the Standard Environment Test screen are described as follows:
Program
Required. Enter the name of the load module.
Entry Point
Enter an alternate entry point if execution is to start at a point other than the link-edited entry point.
Load Module
Enter only if executing a CSECT other than the link-edited entry point of a load module, such as unit testing CSECTs within a load module.
Initial Script
Enter the member name of a test script if you want to execute a predefined command stream at the beginning of the debugging session. This member will be executed after the inclusion of the site-wide script member @@SITE@@, if defined.
Post Script
Enter the member name of a test script if you want to execute a predefined command stream at the end of the debugging session.
PARM (Caps=YES)
When this field is left blank:
If JCL PROC expansion option CONVERT is being used and the step you are testing has the PARM= or PARMDD= keyword, Code Debug TSO will use the JCL-supplied PARM value. To make Code Debug ignore the JCL-supplied PARM value, enter two consecutive single quotes ('') in this field.
When this field is non-blank:
Up to 100 characters may be specified in this field to pass parameter strings and/or run-time options to the program being tested. If the field consists of several substrings separated by commas, or if it contains special characters (/, =, etc.), enclose the entire parameter in quotes (single or double).
The Caps field can be used to designate whether or not you want the PARM string to be converted to upper case.
File List/JCL Member
Enter the data set name that contains the file list, CLIST, or JCL. The File Allocation Utility (FAU) preallocates files and databases that are processed by the program upon entry to the debugging session.
If the member name of a PDS is omitted, a member list is displayed.
If the data set contains a CLIST, Code Debug TSO immediately executes it and begins the debugging session.
If the data set contains a file list or JCL, the FAU is invoked to dynamically allocate the specified files before beginning the debugging session. See Using the File Allocation Utility for detailed information about the FAU.
Preview Files?
Enter YES to browse or edit the content of files prior to allocation. For more information, see Using the Edit File List Screens.
Code Coverage Test?
Enter YES to collect statistics without Test Data Optimization information. Enter TDO to collect statistics and TDO information. The default value is NO.
System Flow?
Enter YES to collect Code Coverage System Flow data. The default value is NO.
Is This a DB2 Test?
Enter YES if the program executes EXEC SQL statements. Code Debug TSO executes the DSN RUN command and establishes the Db2 environment upon entry to the debugging session. The default value is NO.
Plan
Enter the Db2 plan name generated during the bind process. If omitted, the plan name defaults to the name specified in the Program field.
System
Enter the Db2 subsystem name. The subsystem name depends on the release level of Db2 allocated to the DSNLOAD library specified on the Setup option.
Press Enter to initiate the debugging session. See Debugging Interactively for information on how to debug your program.