MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Manufacturing > CONBON > Programs > CONBON Inquiry - Purpose > CONBON Inquiry - Calculations

CONBON Inquiry - Calculations

CB800E

A.   Housekeeping

1.   Refer to the Housekeeping Section within Common Processing Routines for a general discussion of this subroutine.  Processing specific to this program is described below.

2.   A parameter list is set up to receive parameters from the CONBON Menu.

3.   Key lists are defined for each keyed file the program retrieves.

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

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

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

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

c.   The order quantity number of decimal positions is retrieved from category 446.

d.   The user authorization (category 409) is retrieved to determine which plants the user is authorized to.

e.   The workstation assignment (category 428) is retrieved.

6.   This program is directed by the next step processing subroutine.  The program Previous Status field (PRVSTS) is loaded as well as the Next Processing Status field (NXTPRC) to prepare for next step processing.

B.   Mainline

1.   The CONBON Inquiry Function Select Screen (CB800S01) is displayed until the user enters valid data or exits the program.

2.   Inquiry may be performed for any of the three analysis files (CON, BON, or single-card) using either production center or part number as the key.

3.   For explanation of Function Select screen validation, see the CONBON User Manual.

4.   Once the Function Select screen (CB800S01) is validated, the detail screen (CB800S02 for inquiry by production center, or CB800S03 for inquiry by part number) is displayed.

a.   Depending on the request code (1, 2, 3), information from the CON, BON, or Single-Card Analysis file is displayed.

b.   File data is used to build the detail screen subfile.  Depending on whether production center or part number was entered, all records matching this user-input key are displayed.

5.   At the top of the screen, the production center or part number which the inquiry is being performed on is displayed.  The subfile consists of the following fields:

a.   Fields that are taken directly from the analysis files include:

      Part Number - Only displayed if the inquiry is for a production center.

      Producing/Using Cell - Only displayed if the inquiry is for a part number.  Producing cell is displayed if the inquiry is for the CON Analysis file.  Using cell is displayed if the analysis is for the BON or Single-Card Analysis files.

      Rev Lvl - Revision level of the part.

      Begin Date - Begin date for the card.

      End Date - End date for the card.

      Lst Prnt Date - Date the cards were last printed.

      One Time Quantity - The amount by which the flow authorization exceeds the production rate (most frequently occurring rate).  This field is only displayed for CON inquiry.

b.   Fields that are calculated in the inquiry program include:

      Sugg Cards:  Suggested number of cards.

      For CON analysis the calculation is:

      The number of suggested cards is initialized to the card print quantity (CZCRDP) from the CON Analysis file.

      For BON analysis the calculation is:

      Current Number of Cards  +  Net Change in Number of Cards

      For Single-Card analysis the calculation is:

      Current Number of Cards  +  Net Change in Number of Cards

      Current Number of Cards - Current Number of Cards on the Shop Floor.

      For CON, BON, and single-card analysis the calculation is the same:

      Current Quantity

      Container Quantity

      * Special Note:  The above calculations are derived from information directly from the analysis files.  The user should be aware that the integrity of this inquiry program in relation to the data base is only as accurate as the last run of the analysis program.  For example, if the user changes a container quantity on the Part Master file and does not rerun the analysis program, the inquiry program will display data that was calculated using the old container quantity.

6.   Command keys on the detail screens (CB800S02/S03) available to the users include:

F2

Command

Used to display the command window.

F3

Exit

Used to end a session when all processing for a conversation is completed.

F9

Manual Card Print

Enables the user to go to the submit request program for printing a  user-input number of cards.

F11

Automatic Card Print

Allows the user to go to the submit request program for printing the  suggested number of cards.  (The suggested number of cards is the  number of cards that the CONBON analysis program has  recommended to be printed based on data such as production  quantity, container quantity, delivery frequency, etc.).

F17

New Plant

Used to change the plant in which the user is currently working.

 

CB800E Program Menu