Documentation >
MAC-PAC Technical Library >
Distribution >
Synchro >
Programs >
AVIEXP Message Extraction - Purpose >
AVIEXP Message Extraction - Calculations
AVIEXP Message Extraction - Calculations
GA260E
A. Housekeeping
1. In addition to the Reference File categories described in the Common Processing Routines - Housekeeping section, the following records are retrieved from the Reference file (REFERP):
a. The company address is read from G20.
b. The company name is retrieved from category G21.
B. Mainline
1. An AVIEXP message is created for the shipping list and the shipping list's index, both of which are given as input parameters (WPSHNB, WPDNIX). At the end of MAINLN, the status of the shipping list header (NHAVST on GA145M1) is updated to indicate that the AVIEXP message request has been processed.
2. If any error occurs during processing, a record is written to the error file GA999AP (ERRPRC).