Previous Topic: Phase 4: Report Command Verification

Next Topic: Special Notes


Phase 5: User Report Generation

Input

Process

Output

CAIJSCT2

Control tables are built based on the following control statements:

  • RATE
  • TSORATE/RJERATE/SNARATE/APPCRATE
  • GROUP/GROUPC
  • PRIORITY
  • DEVADDR/DEVNMB

Account records are created from CREDIT, DEBIT and BUDGET statements.

An account record is read; selection and rejection (grouping) is performed.

Rates are applied.

 

 

Detail history file (job, level 6 or step, level 7) or summary history file (levels 1-5) is created.

HISTOUT (User-Defined ddname)

 

Output report is printed.

User-Defined Reports

 

Phases 4 and 5 are executed once for each of the 15 possible user-defined reports.

User Exits:

  • Exit 1 is called prior to rate application.
  • Exit 2 is called after rate application.
  • Exit 3 is called just prior to printing the output line.

 

Note: EXTDATA records are not available for reporting or chargeback.

This fifth phase:

User Report Generation

┌─────────┐
                        │         │
┌──────────┐            │    ┌────┴────┐
│ HISTOUT  │            │    │ JSISORT │
│ Level    │ ◄──────────┤    │    &    ├───────┐
│  6 & 7   │            │    │ JSIMAIN │       │
└──────────┘            │    └────▲────┘       │
                        │         │            │
┌──────────┐            │         ▼            │
│ EXITS    │            │    ┌─────────┐       │
│ 1 & 2    │            │    │ SORT    │       │
└──────────┘            │    └─────────┘       │
      ▲                 │                      │
      │                 │                      ▼            ┌──────────┐
┌─────┴────┐            │                  ┌──────┐         │ Summary  │
│   RPG    ├────────────┼─────────────────►│ RPG  │────────►│ History  │
│    5     │            │                  │  6   │         │ Output   │
│ JSIRPG50 │            │                  └───┬──┘         └──────────┘
└──────────┘            ▼                      │
      ▲          ┌──────────────┐              ▼
      │          │ User─Defined │          ┌──────┐
┌─────┴────┐     │   Reports    │          │ EXIT │
│ CAIJSACT │     └──────────────┘          │   3  │
│ File     │                               └──────┘
└──────────┘