Documentation >
MAC-PAC Technical Library >
Distribution >
Purchasing >
Programs >
Housekeeping - Purpose >
Housekeeping - Calculations
Housekeeping - Calculations
Housekeeping
1. Work fields are defined and program constants are initialized.
2. 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.
3. Key lists are set up for each file that is retrieved by the program.
4. Various information is retrieved from the System Control file (CT100M). Some common records retrieved are:
a. The default Company Name is retrieved from the company name record (COMNAM) for output on the reports. If this information is not found, a message is sent to the system operator, a default company name is used, and processing continues.
b. The Balance Types Available for Distribution (DSTAC2, DSTAC3, DSTAC4) are retrieved from the Inventory Control control record (ICCTL2). If this record is not found, the program aborts.
5. Various information is retrieved from the Reference file (REFERP). Some common Reference File records retrieved are:
a. Entity name (category 002).
b. Date format (category 049). If this record is not found, a default value (MMDDYY) is used, a message is sent to the system operator, and processing continues.
c. User/Company authorization (category 409).
d. Order Processing system defaults (categories 412 and 413).
e. Workstation assignment (category 428).
6. Reference File data is loaded into validation arrays.
7. The system time and date are retrieved for reports. The workstation and user Reference-ID are retrieved for screen defaults.
8. The Program Status Field (PGMSTS) is set to direct program processing.