JCL
JCL to Run Customized REXX Reports
//ASURXJCL EXEC PGM=IKJEFT01,PARM='REPORT SSID PLAN ...'
//*--------------------------------------------------------------------
//* PARMS 1.REPORT = NAME OF REPORT TO EXECUTE
//* 2.SSID = DB2 SUBSYSTEM ID OR DATA SHARING GROUP NAME
//* 3.PLAN = ASU PLAN NAME
//* ... REPORT DEPENDENT PARAMETER(S)
//*--------------------------------------------------------------------
//STEPLIB DD DISP=SHR,DSN=HLQ.ASUvvr.LOAD
// DD DISP=SHR,DSN=DB2*****.DSNLOAD
//SYSEXEC DD DISP=SHR,DSN=HLQ.ASUvvr.CLIST
//SYSPRINT DD SYSOUT=*
//SYSTERM DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DUMMY
The EXEC PARM
The REXX EXEC PARM passes information in the following table to the program.
Information passed by the EXEC PARM
PARM | Description | Example |
|---|---|---|
report-name | Name of the CLIST library member that contains the report program | ASUSPCTR |
ssid | DB2 subsystem on which the report will run | DBDA |
plan | Plan to which the ASURXSQL plan DBRM is bound | ASU620DC |
report-parms | Report-dependent parameters | dbname-wildcard |
The online dialog automatically supplies the SSID and plan name. If you use the JCL in JCL, you must supply all parameters shown in the previous table. To find the plan, select User Options on the DASD MANAGER PLUS main menu, then select Current Environment Information and look for the Statistics plan.
DD statements
The following table describes the Data Definition (DD) statements in the JCL that execute the customizable report programs.
DD Statements for Report Programs
ddname | Description |
|---|---|
SYSEXEC | Partitioned data set (PDS) library that contains the report program; the EXEC PARM references the member name |
SYSTSPRT | Data set that contains SAY output of return codes and error messages |
SYSTSIN | DD dummy |
SYSPRINT | Data set that contains the report |
SYSTERM | Data set that contains error messages that are issued by the ASURXRPT and ASURXSQL functions and the C runtime library |