TurboIMAGE/XL Database Management System Reference Manual MPE/iX V6.5 (30391-90011)

248 Chapter6
Host Language Access
ORDERS Database Model Program
ORDERS Database Model Program
Main Body of Program
BEGIN MAIN LINE
* OBJECTIVE: The main line contains the logic of this application.
* It displays all functions, accepts a selection,
* then calls the appropriate routines. The execution
* of this program stops after the database is closed.
*
* ACCESS: Not applicable.
*
* CALLED BY: Not applicable.
*
* CALLS: Open_The_Database
* Get_Sales_For_Date
* Get_A_Customer_Record
* Get_A_Product_Record
* List_All_Customers
* Add_A_Product
* Update_A_Customer
* Delete_A_Product
* Rewind_Customer_Set
* Get_Data_Item_Info
* Get_Error_And_Explain
* Close_The_Database
START LOOP
DISPLAY the list of functions
The following illustration depicts one way of displaying the list of functions for this
program.