Documentation >
MAC-PAC Technical Library >
Manufacturing >
Inventory Control >
Programs >
Housekeeping - Purpose >
Housekeeping - Calculations
Housekeeping - Calculations
Housekeeping
1. All workfields 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 every file retrieved by the program.
4. Various information is retrieved from the System Control file (CT100M). Some common records retrieved include the following.
a. The default Company Name is retrieved from the company name record (COMNAM) for output on the System Error report (CT010X). If this record is not found, a message is sent to the operator, the default message "COMPANY NAME MISSING" is used, and processing continues.
b. The Manufacturing Company (MANCO) and Manufacturing Warehouse (MANWSE) are retrieved from the Design Engineering control record (DECTL1). If this record is not found, a message is sent to the system operator, and the program aborts.
c. The first Inventory Control control record (ICCTL1) is retrieved for the Cycle Count Option (CCEOPT), Lot Option (LOTOPT), and Shortage Horizon Date (SHRDTE). If a record is not found, a default is used, and processing continues.
d. The second Inventory Control control record (ICCTL2) is retrieved for Balance Type headings (BTYPE1-4) and Distribution Activity codes (DSTAC2-4). If this record is not found, the program aborts.
5. Various information is retrieved from the Reference file (REFERP). Some common Reference File categories retrieved in Inventory Control and Purchasing programs are listed below. For more information on Reference File categories, see the Common Features: Reference File Categories Manual.
a. Entity Name (category 002).
b. Applications Installed (category 012).
c. Date Format (category 049). If this record is not found, a message is sent to the system operator, the date format defaults to MM/DD/YY, and processing continues.
d. Order Types (category 401). The order type codes and the corresponding descriptions are loaded into arrays. If this record is not found, the program aborts.
e. Order Status Codes (category 403). The order status codes and corresponding descriptions are loaded into arrays. If this record is not found, the program aborts.
f. Order Policy Codes (category 404). The order policy codes and corresponding descriptions are loaded into arrays. If this record is not found, the program aborts.
g. Part Types (category 405). The part type codes and corresponding descriptions are loaded into arrays. If this record is not found, the program aborts.
h. User/Company Authorization (category 409). If this record is not found, the user is authorized to all company/warehouses.
i. Workstation Assignment (category 428). If this record is not found, the manufacturing company/warehouse (retrieved from the System Control file) is used as defaults.
j. Quantity Field Sizes (category 446). If this record is not found, a message is sent to the system operator and the program aborts.
k. Accounting Close Grace Period (category 456). If this record is not found, the grace period defaults to zero (i.e., no grace period) and processing continues.
6. The system time and date are retrieved for reports. The workstation and user reference ID are retrieved for screen defaults.
7. The program Status field (PGMSTS) is set to direct program processing.