MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Manufacturing > Shop Floor Control > Programs > Status Code Update - Purpose > Status Code Update - Calculations

Status Code Update - Calculations

SF180E

A.   Housekeeping

1.   Work fields are defined and initialized.

2.   The following information is retrieved from the System Control file (CT100M).

a.   The company name record (COMNAM) is retrieved.  If the record is not found, a warning message is sent to the system operator, and processing continues.

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

a.   The date format (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.

b.   The Reference File category 409 is read to determine if the user is authorized to all plants.

c.   The Reference File category 428 is read to determine the workstation's default plant.

d.   The plant validation subroutine is called to validate the default or Fast Path plant.

B.   Mainline

1.   The Labor Requirements status update screen (SF180S01) is displayed.

2.   By pressing ENTER, the user-entered screen data is processed.

a.   Each field is validated.

b.   The program ensures that the Manufacturing Order is open (HSTATS = 0 on the Manufacturing Order Record) before allowing individual labor requirements to be updated.

3.   Master files are updated after a transaction is validated.

a.   A delimiter record of all nines is written to the Component Requirements  Asynchronous  Transaction  file  (IC100AP2) to prevent other programs from updating the manufacturing order and its labor requirements records.

b.   The Labor Requirements Record is read and updated on the Labor Requirements file (IC125UL1).

4.   After the Labor Requirements Record is updated with the new Status Code fields, the locking record on the Component Requirements ASYNC Transactions file (IC100AP2) is deleted.  This releases the order for use by other updated programs or other users.

5.   Report records are written (one per transaction) to the Direct Transaction Register file (SF120CP1) and to the Direct Audit Trail file (SF120BP1).

SF180E Program Menu