The SALESORD Database

The examples in this help file are based upon the dealings of a fictitious company, Acme Sales Order Plc, which sells a number of products throughout the United Kingdom. An example database called SALESORD is supplied with this help system for you to develop and run sample DP4 C programs. SALESORD stores information on Acme employees, customers, orders and supplier's materials.

SALESORD Entity Relationship Diagram

The working example programs in this manual are supplied, on the same disk as the SALESORD database, in source code (.C), header (.H) and executable (.EXE) file formats. All the source code files include a header comment, for instance:

/*
C Functions Reference Manual
----------------------------
Filename: MAP_GET_.C
Example: map_get_inputs
Purpose: Simple data entry for customers.
*/

This tells you:

The SALESORD database contains the mapsets for the examples. These follow the normal DP4 naming convention. That is, they have the same names as their programs. Each example includes a header file that defines the structures required for accessing and processing the SALESORD tables as well as the DP4 initialisation/termination functions. If necessary, the header files can be recreated by running the DP4 utility LIBMAKE against the source files.