Previous Topic: 9.2 Daily Update Processing Flow

Next Topic: 9.2.2 TSO Information Area Processing Phase

9.2.1 Input Raw Data Phase


In this phase, records are read from SMF data sets using the
INPUTSMF DD statements.  The data is processed and formatted
to create SAS observations.

The following user exits are invoked in this phase:

    o  General Exits

        _USRSEL  -  input record selection

    o  Output Exits

        _USRSTSA -  TSOTSA record selection
        _USRS_BD -  TSO_BD record selection
        _USRSTSW -  TSOTSW record selection

    o  Parameter Related Exits

        TSOAURT  - application unit
        TSOACRT  - account code derivation

This phase is shown in Figure 9-1.

                                                    +-------------+
                                                    | Loop        |
                                                    | through DDs |
                                                    | in INPUTSMF |
                                                    +-------------+
                                                          |
                                                       +-------------+
                                                       | Read record |
                                                       | header:     |
                                                       | record type |
                                                       | STARTTS     |
                                                       | ENDTS       |
                                                       | ORGSYSID    |
                                                       +-------------+
                                                           |
                                                       **------------**
                                                       | _USRSEL exit |
                                                       **------------**
                                                              |
                                                       +---------------+
                                                       | Read all      |
                                                       | record fields |
                                                       +---------------+
                                                             |
                                                             |
                                                             |
                                                             |
                                                    +-----------------+
                                                    | Test SYSID &    |
                                                    | ENDTS against   |
                                                    | checkpoint file |
                                                    +-----------------+
                                                              |
                                                    +--------------+
                                                    | Build common |
                                                    | variables    |
                                                    +--------------+
                                                              |
                                                    +------------+
                                                    | CONTINUE 1 |
                                                    +------------+


 Figure 9-1.  Input Raw Data Phase (Part 1 of 2)
                                         +------------+
                                         | CONTINUE 1 |
                                         +------------+
                                                |
                                      +--------------------+
                                      |                    |
                        +---------------------+      +--------------------+
                        | for Command Records |      | for System Records |
                        +---------------------+      +--------------------+
                                      |                    |
                        +---------------------+      +--------------------+
                        | Build TSA and TSI   |      | Loop through SCBs  |
                        | elements            |      +--------------------+
                        +---------------------+               |
                                      |               +------>|
                        +---------------------+       |       |
                        | TSOAURT routine     |       | +-----------------------------+
                        | TSOACRT routine     |       | | if present,                 |
                        +---------------------+       | | Loop through PGBs or WSCBs  |
                                      |               | +-----------------------------+
                        +---------------------+       |           |
                        | USRSTSA exit        |       |    +--------------------------+
                        | Write WORK2.TSOTSA00|       |    | if WSCB,                 |
                        +---------------------+       |    | Write WORK.TSOTSW00      |
                               |                      |    +--------------------------+
                        +---------------------+       |          |
                        | Optionally, USRSTSA |       | +-------------------+
                        |   exit              |       | | Loop through UCBs |
                        | Write WORK2.TSO_BD00|       | +-------------------+
                        +---------------------+       |          |
                               |                      |    +--------------------------+
                        +---------------------+       |    | Loop through CCBs & FCBs |
                        | Write WORK.TSOTSI00 |       |    +--------------------------+
                        | Optionally,         |       |           |
                        | Write WORK.TSO_BI00 |       |    +--------------------------+
                        +---------------------+       |    | Write WORK.TSOTSC00      |
                                                      |    | Optionally,              |
                                                      |    | Write WORK.TSO_BC00      |
                                                      |    +--------------------------+
                                                      |          |
                                                      | +---------------------+
                                                      | | Write WORK.TSOTSU00 |
                                                      | | Optionally,         |
                                                      | | Write WORK.TSO_BU00 |
                                                      | +---------------------+
                                                      |       |
                                                      +<---- DONE?
                                                              |
                                                     +---------------------+
                                                     | Write WORK.TSOTSO00 |
                                                     +---------------------+

 Figure 9-1.  Input Raw Data Phase (Part 2 of 2)