[zenithpaints]
Stock Update Program
Last Update: 9 November, 2002 10:12 AM
 
Stock Update Program
 
 
Section Links
Program Overview

Program Overview

       Before this program is used it is imperative that the stock transaction file used has been produced by the data entry program (494792P0.exe), and prior to this has been validated by the validation program (494792P1.exe). If this is not the case then the outcome of this program is not guaranteed to be in anyway reliable or useable, and the Stock Master file created can not be trusted in any shape or form.

       The validated stock transaction file from the Validate Program (494792P1.exe) is used to update a Stock Master and Stock Index file, thus creating a new generation of the stock files. Stock transactions that can not be actioned are reported on the printer under suitable headings with an appropriate error message.

       The text file which contains the validated stock transaction records must be named 494792SF.DAT. The stock master file must be named STCKMAST.DAT. The stock index file must be named STCKMAST.IDX, and all three must be located in the same directory from where the update program is located and executed from. This is unless the user changes these default file names by entering additional program parameters at the command line. Below describes how the default file names can be overridden: -

       494792P5.exe <validated stock transaction file> <stock master file> <stock index file> <printer>

              The default file names are as follows: -
              Validated Transaction file - 494792SF.DAT
              Stock Master file - STCKMAST.DAT
              Stock Index file - STCKMAST.IDX
              Printer - PRN

       If the user wishes to override one of these files they must also enter the file names of all the files preceding it. For example to override the printer to a text file named test.txt, they must enter the following command: -

       494792P5.exe 494792SF.DAT STCKMAST.DAT STCKMAST.IDX test.txt

       However if the user only wishes to change the name of the file which contains the validated transactions, they may enter the following command: -

       494792P5.exe TRANS.DAT

       The overriding of the default file names is mainly for test purposes or where there is a need to do so. Such a need may arise when there is a need to test the outcome of a sock transaction file, but you do not wish to change the contents of the original stock master files. The everyday users of this program need not even have to be aware of this overriding feature.


Back Home

 
 
© Copyright 1999-2008 @incubus. All Rights Reserved. All trademarks acknowledged.