Documentation >
MAC-PAC Technical Library >
Distribution >
Expert Configurator >
Programs >
Configuration Code Assignment Maintenance - Purpose >
Configuration Code Assignment Maintenance - Calculations
Configuration Code Assignment Maintenance - Calculations
EC170E
A. Housekeeping
1. Parameter lists and key lists are defined.
2. Work fields are defined and program constants are initialized.
3. CPF File Access Status Codes are retrieved from Reference File category 015.
B. Mainline
1. Display and validate the function select screen.
a. Validate the Maintenance Code (RCODE). It must be 1 - Add or 2 - Delete.
b. Validate the Part Number (CZCPTN). The part must be a valid, active part. The part's configuration cost option must not be '0'.
c. Validate the Lot Number (CLLOT) if the Part Number is valid.
(1) The Part Number/Lot combination must exist on the Lot Master file (IC150M).
(2) The lot must have no activity against it, therefore the First-In First-Out Date (FIFO Date - LCEXDT) must be zero.
d. Validate the Configuration Code (CZCFGC) if the Part Number is valid.
(1) The code is required if you are adding a Configuration Code/Lot Assignment.
(2) The code cannot be all nines or blank.
(3) The Part Number/Configuration Code combination must exist on the Configuration Code file (EC140M).
e. If no validation errors have occurred, and you are adding an assignment record, check that the Lot Number does not already have a Configuration Code.
f. Lock the Configuration Assignment Master file record if you are deleting an assignment.
g. Check that the entered Configuration Code matches the one on the Configuration Assignment Master file if you are deleting an assignment.
2. Update the Configuration Assignment Master file if no validation errors are found.
3. Unlock all locked files.