In this
example, the inventory data is accessed through a
SAS/SHARE server. The data is completely hidden
from the user of the order-entry application. The purpose of this
example is to show how to maintain information automatically in a
SAS data set.
The inventory
file is also ideal for accessing through a
SAS/SHARE server to keep the available quantity of each item
current.
In the
order-processing example, the inventory data set is opened for update
access through the server. Read-only access to the inventory data
set might be given for the reporting programs that are run either
nightly or on-demand, which would also access the data set through
the server. The inventory reporting and analysis programs are not
included in this example.
In a mature
inventory-management system, there would be additional access to the
inventory data by employees who receive merchandise. This example
shows only the order-processing side (the “inventory depletion”
process), but it is important to remember that replenishing inventory
must also take place. Accessing the inventory data by using a
SAS/SHARE server allows both the
ordering and the receiving operations to maintain current information
in the inventory file.