Documentation >
MAC-PAC Technical Library >
Manufacturing >
Electronic Data Collection >
Programs >
Housekeeping - Purpose >
Housekeeping - Calculations
Housekeeping - Calculations
Housekeeping
1. Parameter lists are set up for each program that is called by the program. The fast path parameter list is set up for all online programs.
2. Key lists are set up for each file that is retrieved by the program.
3. Work fields are defined and program constants are initialized.
4. Various information is retrieved from the Reference file (REFERP). Some common Reference File categories that are retrieved include:
a. Applications Installed (category 012)
b. Date Format (category 049)
c. Field Decimal Precision (category 446)
5. Some Reference File data are loaded into arrays for easy access during the program. This includes categories such as the following:
a. All status codes
b. All print codes
6. The Data Base Activity Flag (DBACT) is checked on the Data Base Control file (CT110P01). If this flag equals N, the integrity of the data base has been damaged, and the system aborts.
7. The system time and date are saved for printing on reports. The workstation and user reference IDs are saved for printing on reports and for displaying on the screen of online programs.
8. If no errors have occurred, the program Status field is set to indicate that housekeeping has successfully completed, and the program can continue with the next processing.