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

CONBON Card Print - Calculations

CB540E

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.   Defines parameter lists and key lists needed by the program.  Defines and initializes work fields and constants.

3.   Retrieves the following categories from the Reference file (REFERP):

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

b.   The date format flag (category 049) is retrieved.  If this record is not found, the program defaults to MMDDYY.

c.   The following categories are retrieved and stored in program variables for access during processing:

·     Flow Interval Flag (category C05)

·     CONBON Form types (category C10)

d.   The bar code option (category C57) is retrieved to determine if the card should be printed with bar coding.  If the record is not found, the option defaults to N (no), a message is sent to the system operator, and processing continues.

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

a.   The company name (COMNAM) is retrieved for the Card Print Exception report.  If this record is not found, it defaults to blanks.

b.   The warehouse balance type is retrieved.  If the record (ICCTL2) is not found, the system aborts.

B.   Mainline

1.   This program can be executed in two different modes:  immediate processing, which prints one manually requested CONBON card, and batch processing, which sequentially prints all manually and automatically requested CONBON cards.  The input parameter (FILKEY) determines which processing is to be performed.

2.   If FILKEY equals batch processing, the Automatic Card Print Request file (CB330AP) records are processed.  The Manual Card Print Request files are also processed.

During automatic card print request (CB330AP) processing, all analysis records within the requested flow interval and within the requested cell are read.  Information is moved temporarily to the Manual Card Print Request file (CB340AP) for later processing.

3.   If FILKEY equals immediate processing, the parameters passed to the program are treated as if it were one manual card print record (CB340AP).

During manual card print request (CB340AP) processing, all request records are validated and any defaulted date is retrieved from the corresponding analysis file (CB100AP1, CB100AP2, or CB100AP3), the Revision Level file (DE170ML2) or the Part Master file (DE100M).  Records within the Manual Card Print Request file contain all records previously written during automatic card print request (CB330AP) and all records submitted by the Manual Card Print Request program.

4.   Defaulted data is retrieved in the following manner.  If a field is blank or zero, or the analysis file is not read, then the program will go to the next level file and retrieve the field.  If the program goes through all the levels without finding the correct information, then the program will either leave blanks or zeros in the fields, write an error message to the Exception report, or abort.

CB540E Program Menu