Explaining a package in batch
Use the following procedure to perform a batch Explain on a package.
To perform a batch Explain
- Generate a list of packages to Explain.For instructions, see Generating-a-list-of-packages-to-Explain.
- Specify options for the Explain.For instructions, see Specifying-Explain-options.
In the space beside an object or statement, type XB, and press Enter.The Batch Explain Type panel in the Following Figure is displayed.
PSSPA116 Batch Explain Type
Explain Type . . . 1 1. XD=Explain Dynamic
2. XS=Explain Static from bind with EXPLAIN(YES)
3. XC=Explain Compare Dynamic and Static Explains- Specify the batch Explain Type as follows:
- XD performs a dynamic Explain.
- XS performs a static Explain.
- XC compares a dynamic Explain and a static Explain.
- Press Enter.The Batch Job panel is displayed. (See a sample panel in Specifying-JCL-options-in-batch-mode).
Specify options for the batch Explain.For instructions, see Specifying-JCL-options-in-batch-mode. You can also change the layout data set using the Data Set Options panel (see the panel in Step 7).
- (optional) Customize the display of your batch Explain:
In the Set JCL Options field, type Y, and press Enter.The JCL Options panel is displayed in the Following Figure .
PSSPOJ00 ------------------------- JCL Options --------------------------------
Command ===>
Specify one of the options and press ENTER to continue.
Options 2 1. SMS Classes
2. Data Sets
3. Job CardsIn the Options field, select Data Sets, and press Enter.The Data Set Options panel in Following Figure is displayed.
PSSPODS1 ----------------------- Data Set Options -----------------------------
Command ===>
Specify options and press ENTER to continue.
Use #### in member name to have counter variable generated into member name.
Counter . . . . . . . . 13 (Replaces #### in member name, then incremented)
Note: The JCL, SYSPRINT, and Summary data sets can be partitioned or
sequential. The Layout data set must be partitioned with a member
name specified.
JCL Data Set . . . . . 'RDAKNN.SQLXPLR.CNTL(SQLX####)'
SYSPRINT Data Set . . . 'RDAKNN.SQLXPLR.SYSPRINT(SQLX####)'
SYSPRINT SYSOUT . . . . Y (Y/N) SYSOUT Class . . . *
Summary Data Set . . . 'RDAKNN.SQLXPLR.SUMMARY(SQLX####)'
Summary SYSOUT . . . . Y (Y/N) SYSOUT Class . . . *
Layout Data Set . . . . 'BMCPERF.BMCSAMP(PSSREPA)'- Verify that the options on the panel are correct, and press Enter.The Job Card Options panel is displayed .
- Specify job card options as needed, and press Enter.The JCL Options panel is displayed in Following Figure .
- Press F3 to display the generated job.
- Review and submit the batch Explain job.
Related topic