Previous Topic: 9.2.2 TSO Information Area Processing Phase

Next Topic: 9.2.4 File Aging Phase

9.2.3 Data Base Time-Span Update Phase


Processing in this phase updates the week-to-date and
month-to-date cycles of the files shown in Figure 9-2.

No user exits are invoked in this phase.

                       +-----------------+
                       | for files (fff) |
                       | TSC, TSI, TSO,  |
                       | TSU, _BC, _BI,  |
                       | _BU, DRU, TSW   |
                       +-----------------+
                              |                    +------------+                  +------------+
                       +----------------+          | CONTINUE 2 |                  | CONTINUE 3 |
                       | If DAYS time-  |          +------------+                  +------------+
                       | span exists for|                 |                               |
                       | the fff file   |          +----------------+              +----------------+
                       +----------------+          | If WEEKS time  |              | If MONTHS time-|
                                |                  | span exists for|              | span exists for|
                         +-----------------+       | the fff file   |              | the fff file   |
                         | Sort            |       +----------------+              +----------------+
                         | DETAIL.TSOfff00 |                |                               |
                         | to              |         +-----------------+             +-----------------+
                         | WORK.TSOfff00   |         | Sort            |             | Sort            |
                         +-----------------+         | DETAIL.TSOfff00 |             | DETAIL.TSOfff00 |
                                |                    | to              |             | to              |
                           +--------------+          | WORK.TSOfff00   |             | WORK.TSOfff00   |
                           | By DAYS file |          +-----------------+             +-----------------+
                           | sequence     |                 |                               |
                           +--------------+            +---------------+               +---------------+
                                |                      | By WEEKS file |               | By MONTHS file|
                         +-----------+                 | sequence      |               | sequence      |
                         | Summarize |                 +---------------+               +---------------+
                         +-----------+                      |                               |
                                |                    +----------------+              +----------------+
                           +---------------+         | Combine with   |              | Combine with   |
                           | Write         |         | WEEKS.TSOfff00 |              | MONTHS.TSOfff00|
                           | DAYS.TSOfff00 |         +----------------+              +----------------+
                           +---------------+                  |                               |
                                |                      +-----------+                   +-----------+
                     +------------+                    | Summarize |                   | Summarize |
                     | CONTINUE 2 |                    +-----------+                   +-----------+
                     +------------+                         |                               |
                                                       +----------------+              +----------------+
                                                       | Write          |              | Write          |
                                                       | WEEKS.TSOfffWO |              | MONTHS.TSOfffMO|
                                                       +----------------+              +----------------+
                                                            |
                                                   +------------+
                                                   | CONTINUE 3 |
                                                   +------------+

 Figure 9-2.  Data Base Time-Span Update Phase