RG Database
The RG database is a logical entity whose records are physically located in the WS dataset.
The basic unit of information in the RG database is the run
cycle group (RG), which contains all the information about a run
cycle group and about the single run cycles that make it up. Each
RG contains these sections:
- Run cycle group information
- This section contains information such as the run cycle group name, description and owner, the names of the default JCL variable table and calendar, and the default input arrival time. The default JCL variable table, calendar, and input arrival time are valid for all the run cycles in the group unless the definitions of the single run cycles specify other ones. You build this section with an RGSTART control statement.
- Run cycle definitions
- Each run cycle group contains several run cycle definitions. Each run cycle definition specifies the name, description, type, free-day rule, validity dates, deadlines, subset, and optionally, the input arrival time and the JCL variable table and calendar names if different from the ones specified for the group. You specify each run cycle with the RGRUN control statement.
- Rule definitions
- Every run cycle definition must be followed by the ADRULE statement that defines the rule followed by the run cycle. The rule specifies the days of the week, month, or year an application will run, and their recursiveness, and generates a set of dates based on the calendar chosen. A run cycle definition is made up by an RGRUN/ADRULE couple.
The run cycles defined in the run cycle groups (RG) are compatible with the run cycles defined in the application descriptions (AD). Applications can therefore use any mix of the two.