EXEC statements
When you code JCL statements to run IMS Online Reorganization Facility, you must include the EXEC statement.
The EXEC statement for IMS Online Reorganization Facility is in the following format:
//stepname EXEC PGM=HRFREORG,REGION=rrrM,
// PARM='DBD(dbdname)'
Specify HRFREORG as the program name. Ensure that sufficient region size is specified on the REGION parameter.
You can specify the following optional keywords on the PARM parameter:
- DBD
- Specifies the primary database to reorganize. The DBD keyword
can be specified either on the EXEC statement as a z/OS® parameter string or in the HRFSYSIN DD
statement. If you specify this keyword on the EXEC statement, the
DBD keyword in the HRFSYSIN DD statement must be specified as
DBD(&PARM)
.For more information, see DBD keyword.
- PARTITION
- Specifies the name of the HALDB partition to reorganize. The PARTITION
keyword can be specified either on the EXEC statement as a z/OS parameter string or in the
HRFSYSIN DD statement. If you specify this keyword on the EXEC statement,
the PARTITION keyword in the HRFSYSIN DD statement must be specified
as
PARTITION(&PARM2)
.For more information, see PARTITION keyword.
Tip: By specifying these keywords on the
EXEC statement, you can use a common HRFSYSIN DD statement that can
be used across multiple databases.
For example, if you want to use a common HRFSYSIN DD statement between HALDB databases and full-function databases, specify the following EXEC parameters:
- When processing a full-function database:
PARM='DBD(dbdname),PARTITION(*)'
- When processing an entire HALDB database:
PARM='DBD(master_dbdname),PARTITION(*)'
- When processing a single HALDB partition:
PARM='DBD(master_dbdname),PARTITION(partname)'
In these cases, specify the DBD and PARTITION keywords on
the HRFSYSIN DD statement as DBD(&PARM)
and PARTITION(&PARM2)
.