JCL setup
This topic describes the changes required for the EXEC card and DD names that are used by BMC AMI Utilities. Some products might use additional DD names.
The following figure shows a sample of basic JCL for running BMC AMI Utilities. Numbered lines are described following the figure. The JCL is grouped to show related elements. The order of the DD statements is not significant.
//*
//********************************************************************
//* REQUIRED STATEMENTS - MINIMUM FOR RUNNING A UTILITY
//********************************************************************
//UTILSTEP EXEC PGM=NGTUTIL,PARM='DB2B,MYREORG,RESTART'
//STEPLIB DD DSN=NGT.UTILITY,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
<utility-control-statements>
<utility-control-statements>
<utility-control-statements>
//********************************************************************
//* GLOBAL PARAMETERS - USE TO OVERRIDE INSTALLATION OPTIONS
//********************************************************************
//UTLPARMS DD DSN=NGT.CNTL(PARMS ),DISP=SHR
//*
//********************************************************************
//* SPECIFIC UTILITY PARAMETERS - USE TO OVERRIDE INSTALLATION OPTIONS
//********************************************************************
//xxxPARMS DD DSN=NGT.CNTL(PARMSxxx),DISP=SHR
//*
//********************************************************************
//* AUTOMATION SUPPORT (OPTIONAL)
//********************************************************************
//NGTAUTO DD DSN=NGT.REXX.EXEC,DISP=SHR
//*
//********************************************************************
//* REPORT OUTPUT FILES (OPTIONAL)
//********************************************************************
//CDBPRINT DD SYSOUT=*
//CDBPRIN2DD SYSOUT=*
//SUMMARY DD SYSOUT=*
//RUNSTATS DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSERROR DD SYSOUT=*
//*
//********************************************************************
//* DIAGNOSTIC RESOURCES (OPTIONAL)
//********************************************************************
//LOGPDS DD DSN=NGT.LOGPDS,DISP=SHR
//*
//********************************************************************
//* EDITPROC SUPPORT (OPTIONAL)
//********************************************************************
//EDITPLIB DD DSN=USER.EDIT.PROC.LIB,DISP=SHR
//*
//********************************************************************
//* AGING REPORT (OPTIONAL)
//********************************************************************
//AGEREPRT DD SYSOUT=*
//*
//********************************************************************
//* REQUIRED STATEMENTS - MINIMUM FOR RUNNING A UTILITY
//********************************************************************
//UTILSTEP EXEC PGM=NGTUTIL,PARM='DB2B,MYREORG,RESTART'
//STEPLIB DD DSN=NGT.UTILITY,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
<utility-control-statements>
<utility-control-statements>
<utility-control-statements>
//********************************************************************
//* GLOBAL PARAMETERS - USE TO OVERRIDE INSTALLATION OPTIONS
//********************************************************************
//UTLPARMS DD DSN=NGT.CNTL(PARMS ),DISP=SHR
//*
//********************************************************************
//* SPECIFIC UTILITY PARAMETERS - USE TO OVERRIDE INSTALLATION OPTIONS
//********************************************************************
//xxxPARMS DD DSN=NGT.CNTL(PARMSxxx),DISP=SHR
//*
//********************************************************************
//* AUTOMATION SUPPORT (OPTIONAL)
//********************************************************************
//NGTAUTO DD DSN=NGT.REXX.EXEC,DISP=SHR
//*
//********************************************************************
//* REPORT OUTPUT FILES (OPTIONAL)
//********************************************************************
//CDBPRINT DD SYSOUT=*
//SUMMARY DD SYSOUT=*
//RUNSTATS DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSERROR DD SYSOUT=*
//*
//********************************************************************
//* DIAGNOSTIC RESOURCES (OPTIONAL)
//********************************************************************
//LOGPDS DD DSN=NGT.LOGPDS,DISP=SHR
//*
//********************************************************************
//* EDITPROC SUPPORT (OPTIONAL)
//********************************************************************
//EDITPLIB DD DSN=USER.EDIT.PROC.LIB,DISP=SHR
//*
//********************************************************************
//* AGING REPORT (OPTIONAL)
//********************************************************************
//AGEREPRT DD SYSOUT=*
The line numbers in the following table refer to basic JCL for BMC AMI Utilities.
Line no. | Name | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JOB name | (optional) Job statement name according to your installation standards Include the REGION parameter on either your JOB statement or your EXEC statement to specify the region size (the amount of virtual storage that the product uses). For the best performance, BMC recommends that you specify REGION=0M to allocate the optimal amount available virtual storage to the product job. If your data center does not permit you to specify REGION=0M, specify the amount that allows the most virtual storage both above and below the 16-megabyte line. Using a region size that is less than optimal risks the following issues:
| ||||||||||||||
6 | EXEC statement
| Step name according to your installation standards You specify the positional parameters for BMC AMI Utilities required to run those products via the PARM= clause. You can use the following positional parameters:
| ||||||||||||||
7 | STEPLIB DD | (required) STEPLIB or JOBLIB to access the BMC AMI Utilities load library | ||||||||||||||
8 | SYSPRINT DD | (required) SYSPRINT statement to capture product output From SYSPRINT, the product output is transferred to the CDBPRINT DD data set. The SYSPRINT data set is cleared and released following each step of BMC AMI Utilities. The SYSPRINT data set provides a valuable diagnostic tool if errors occur. However, some BMC AMI Utilities employ parallel processing, which can result in overlapping outputs in SYSPRINT. The SUMMARY DD statement contains a more readable analysis of the product execution. | ||||||||||||||
SYSPRIN2(PTF BQU2361 applied) | BMC AMI Utilities use SYSPRIN2 to duplicate SYSPRINT messages. If specified, output from the BMC utility can be viewed when you run utility prior to utility completion. | |||||||||||||||
9 | SYSIN DD | (required) The control statements for the products you are executing, for example, Reorg, Load, or Unload. For more information about SYSIN statements, see SYSIN-statements-other-than-BMC-AMI-Utilities-product-statements. You can concatenate multiple statements in one SYSIN file, but each statement must process a different object. Each statement must begin on a new line. Alternatively, you can specify +SYSINORDER(HONOR) to process the objects in a single thread, rather than in parallel. SYSIN is limited to 2 MB. | ||||||||||||||
16 | UTLPARMS DD | (optional) Specifies general execution parameters For a list of global parameters, see Global-parameters-UTLPARMS. If you do not specify UTLPARMS, BMC AMI Utilities use the values that were defined during configuration for the specific Db2 subsystem. | ||||||||||||||
21 | Specific utility parameters | (optional) Contains parameters for a particular product There is one DD statement for each product. BMC AMI Utilities first read the global parameters from the //UTLPARMS DD statement. Parameters from each of the //xxxPARMS DD statements specify options unique to the product. If you do not specify parameters for a product, BMC AMI Utilities use the values that were defined during configuration for the specific Db2 subsystem. For more information about these parameters, see the space for the specific BMC AMI Utility. | ||||||||||||||
26 | NGTAUTO DD | (optional) Overrides the data set name for the NGTAUTO PDS that was specified during configuration for the Db2 subsystem Alternatively, CDBEXEC DD can be specified. | ||||||||||||||
31 | CDBPRINT DD | (optional) CDBPRINT data set SYSPRINT output routinely goes to CDBPRINT unless CDBPRINT is already allocated. The report output for all BMC AMI Utilities is written to CDBPRINT. All other products report their output to SYSPRINT and then copy the output to CDBPRINT. You do not need to supply this DD unless there are specific situations in which you do not want to dynamically allocate this file. | ||||||||||||||
32 | CDBPRIN2 DD(PTF BQU2361 applied) | (optional) CDBPRIN2 data set CDBPRIN2 allows you to monitor the progress of BMC AMI Utilities while running in a worklist using Execution JCL. The CDBPRINT output is echoed to CDBPRIN2. Add the CDBPRIN2 DD if you want multiple copies of the CDBPRINT output or to monitor the progress of BMC AMI Utilities. | ||||||||||||||
33 | SUMMARY DD 1 | (optional) SUMMARY statement to capture product output Compared with SYSPRINT, SUMMARY contains a more organized analysis of the product execution. It includes reports printed at the conclusion of a product run, and does not reflect output overlapped from parallel processing. If this DD statement is specified, summary reports are not printed to SYSPRINT. Instead, they are printed to SUMMARY as each product statement completes. If this DD statement is omitted, the summary reports are printed to SYSPRINT. | ||||||||||||||
34 | RUNSTATS DD 1 | (optional) RUNSTATS report RUNSTATS contains a report showing RUNSTATS values, and messages affirming update of the Db2 Catalog with these values. This report is printed for any product that also updates Catalog RUNSTATS values, such as REORG and LOAD. | ||||||||||||||
35 | SYSTSPRT DD | (optional) SYSTSPRT data set Any messages sent to TSO are also sent to SYSTSPRT. This may include output from automation control points. REXX Displays from automation control points are only sent back to the job if the you have selected Journal level output. If you have selected Journal level output, these displays are sent to CDBPRINT unless this SYSTSPRT DD is included. If SYSTSPRT DD is included, these displays are sent to SYSTSPRT. | ||||||||||||||
36 | SYSERROR DD 1 | (optional) Error messages If this DD statement is not specified, error messages appear only in SYSPRINT. However, if SYSERROR is specified, error messages appear in SYSERROR and SYSPRINT. | ||||||||||||||
41 | LOGPDS DD | (optional) Overrides the data set name for the Log PDS that was specified during configuration for this Db2 subsystem The Log PDS contains diagnostic information if BMC AMI Utilities abend. For more information, see LOGPDS. | ||||||||||||||
46 | EDITPLIB DD | (optional) You can supply an //EDITPLIB to point BMC AMI Utilities to the Edit Proc library when the following conditions exist:
If EDITPLIB is allocated, BMC AMI Utilities attempt to load the Edit Proc from this library. If it cannot, BMC AMI Utilities perform an SVC 8 and attempt to let z/OS find the Edit Proc. | ||||||||||||||
51 | AGEREPRT DD | (optional) Aging reports for BMC AMI Utilities Aging reports for BMC AMI Utilities list the product IDs that are pending deletion. |
1 (PTF BQU1353 applied) This DD is always automatically allocated.