TIRFDOW

TIRFDOW is a called module supplied with CA Gen. TIRFDOW is called every time an action diagram uses the DAYOFWEEK function.

DAYOFWEEK returns the day of the week ("Sunday", "Monday", etc.) by sending it a valid date.

DAYOFWEEK generates the following COBOL statements:

Statement

Quantity

Call

1

Compute

1

Move

3

Initialize

1

IF

1

Heavy use of DAYOFWEEK can drastically increase CPU costs.

Hints

If a PrAD and its called action diagrams use DAYOFWEEK more than once for the same date:

  • use DAYOFWEEK once for the desired date

  • save the day of week returned in a local view

  • use the local view instead of DAYOFWEEK for the remaining instances

  • pass the local view to the import view of any called action diagrams that need it.