ILBODTE

ILBODTE is the routine invoked each time the date is accepted from the system. ILBODTE performs five functions:

·   ILBODTE0 determines the date on which the program is executed in the form: month/day/year.

·   ILBODTE1 calculates the time of day that the program is executed in the form hour/minute/second.

·   ILBODTE2 calculates the date in the form year/month/day.

·   ILBODTE3 calculates the day in the form year/day.

·   ILBODTE4 calculates the time in the form: hour/minute/second/hundredth-of- a-second.

Hints

ILBODTE is invoked each time the date is accepted from the system. If done repetitively, this can result in excessive CPU use. Refer to the CPU Attribution reports to determine which statement called ILBODTE.

To avoid such consumption of CPU, move the CURRENT-DATE, DATE, DAY, TIME, or TIME-OF-DAY verbs into working storage once, and move the working storage fields as needed.

Reference Sources

IBM OS/VS COBOL Subroutine Library Program Logic, LY28-6425.