Entry points > Module Supervisor > Standard script SUBPS2 

MAJSTA

The entry point MAJSTA is used if required to update the specific/custom variables during the update of the statistics.

Context and operating mode

In the context of the entry point :

  • There is a current transaction

The following tables are on line :

Table

Significant content

Table description

STAT [SAT]

Yes

Statistics

The entry point is called both in confirmation of actual time as well as in batch confirmation.

All the variables in the STAT [SAT] table are on line and loaded.

The SUBPS2 process is delivered with the source code. The entry point is called by the label $CUMSTA.

DEBMAJSTA: Before the update of the statistics

Entry point DEBMAJSTA is used to modify criteria before the update of the statistics.
For instance, it can be used to modify the update date so as to make the start of the week and Sunday coincide.

Context and operating method

In the context of the entry point :

  • There is a current transaction

The following tables are on line :

Table

Significant content

Table description

STAT [SAT]

Yes

Statistics

The entry point is called both in confirmation of actual time as well as in batch confirmation.

All the variables in the STAT [SAT] table are on line and loaded.

The SUBPS2 process is delivered with the source code. This entry point is called via subprogram MAJSTA.