Viewing the generated days of a run cycle group

You can view a calendar-type representation of the days generated globally by a run cycle group.

About this task

To view the days generated by a run cycle group:
  1. Follow the steps necessary to browse, create, or modify a run cycle group in the database.
  2. When you are in one of the ensuing panels, enter the GENDAYS command or, where available, press the PF4 key (Actions), use the TABS key to position your cursor under the Actions item, and press ENTER to display a pop-up window where you enter 1 to select the Display the dates generated by this Run cycle group menu item.

    The LIST OF GENERATED DATES panel is displayed.

The LIST OF GENERATED DATES panel shows:
  • The name of the run cycle group
  • The name of the calendar used to display work and free days. If a calendar was not defined for the run cycle group, the calendar defined in the OPTIONS dialog is used. When a calendar is not defined there, a calendar named DEFAULT is used.
  • The work-day-end time specified in the calendar.
  • The shortest time period that the following periods overlap:
    • Run cycles validity range
    • Four years forward from 1 January of the current year
  • The calendar-type representation of the days generated for the run cycle group.

This list of generated dates is calculated globally for the group, putting together the dates generated by the individual run cycles. This process is run based on the run cycle group subsets. That is, the dates are generated first for the run cycles within each subset (calculating the dates from the positive, the negative, and the AND rules) and ultimately the dates generated for the subsets of the group are converged together. This is the value of grouping the run cycles within a group into subsets. Each subset should contain related positive (R) and negative (E) rules, or AND condition positive (A) and negative (D) rules.

For example, you defined a run cycle group where all the run cycles are in effect for the second half of year 2013 (from 13/07/01 to 13/12/31) and uses a calendar where:
  • The work day end time is defined at 06.00
  • Only Saturday and Sunday are free days
There are four rules defined with different free-day rules and input arrival times. The run cycles are paired in 2 subsets. The run cycles are:
Rule1
Run every first and 15th day of each month.
Rule2
Do not run on any day of week 46.
Rule3
Run on the last Thursday of every month (AND condition).
Rule4
Run on the last work day of every month (AND condition).
Table 1. An example of how the days of a run cycle group are generated
Run cycle (subset ID) Free day rule Input arrival time Rule type Days generated for run cycle Days generated for subset Days generated for run cycle group
Rule1 (SS1) 2 10.00 R Days 1 and 15 in July, August, October, and November. In September and December, days 2 and 16 because the first and the 15th fall on a free day (Sunday). Days 1 and 15 in July, August, and October. Day 1 in November. Days 2 and 16 in September and December.

July: 1, 15
August: 1, 15
September: 2, 16
October: 1, 15, 31
November: 1
December: 2, 16

Rule2 (SS1) E 10.00 E All days spanning from November 11 to November 15.
Rule3 (SS2) E 18.00 A The following Thursdays: July 25, August 29, September 26, October 31, November 28, and December 26. Thursday October 31 (only this day satisfies the AND condition of the two run cycles in SS2)
Rule4 (SS2) 1 18.00 A Wednesday July 31, Friday August 30, Monday September 30, Thursday October 31, Friday November 29, Tuesday December 31.
The rule-processing order within a subset or a run cycle group without subsets is as follows:
  1. A-type rules (AND conditions) are resolved. The end-result eventually is equivalent to an R rule.
  2. D-type rules (negative AND conditions) are resolved. The end-result eventually is equivalent to an E rule.
  3. R-type rules are resolved.
  4. E-type rules are resolved
  5. All dates generated from the resolved A and R-type rules are merged together.
  6. All dates generated from the resolved D and E-type rules are merged together.
  7. The negative dates generated from all D and E-type rules are subtracted from the dates generated from the A and R-type rules.

Note also that if a calendar is specified for a rule, the run days for that rule are generated with that calendar. If no calendar is specified for the rule, the run days are generated using the calendar defined for the run cycle group (or the DEFAULT calendar). In any case, when you run the GENDAYS command to display the overall run days of the run cycle group, the days are displayed using the calendar of the run cycle group (or the DEFAULT calendar).