MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Distribution > Expert Configurator > Programs > Configuration Code Purge - Purpose > Configuration Code Purge - Calculations

Configuration Code Purge - Calculations

EC010E

A.   Housekeeping

1.   See the Common Processing Routines - Housekeeping section of this manual for a discussion of this subroutine.  Processing specific to this manual is described below.

2.   Work fields are defined and program constants are initialized.

3.   The following information is retrieved from the Reference file (REFERP).

a.   The operating system's file status codes are retrieved from record category 015.  If this record is not found, a message is displayed and the program terminates.

b.   The date format record (category 049) is retrieved.  If this record is not found, a message is sent to the system operator, the date format defaults to MMDDYY, and processing continues.

4.   The company name is retrieved from the company name record (COMNAM) on the System Control file (CT100M).  If this record is not found, the company name defaults to blanks.

B.   Mainline

1.   Read the Configuration Code file (EC140M) until the end of file is reached.

2.   Check to see if the configuration code is valid for deletion.  If any of the conditions are met, the deletion flag (DELFLG) is set to yes.

a.   Check to see if the previous period on-hand quantity is equal to zero.

b.   Check to see if the configuration code exists on the Configuration Code Assignment file (EC170M).

c.   If no configuration assignment records are found, check to see if the configuration code exists on any unclosed sales order line or any sales order quote.

3.   If the configuration code is eligible for deletion, delete the code from the Configuration Code file (EC140M) and write a record on the deletion report.

EC060E Program Menu