After you have created a new container for your parts and set your preferences, you can begin developing a program. This tutorial takes you through a top-down approach to developing a small sample program.
The sample program you develop in this tutorial lists customers from a table that is shipped with VisualAge Generator. With your sample program, users can perform the following tasks:
The relational table shipped with VisualAge Generator contains the SQL column information shown in Figure 43.
The columns of the table can be displayed using arrays in a single map. The map can also contain the starting staff identifier number, the current date, a message line, and a line of prompts for the function keys that are available.
As you develop, you can look at a diagram of your program using the Program Editor shown in Figure 44.
VisualAge Generator shows the elements of the program symbolically. The program diagram is divided into two parts: Specifications and Structure Diagram. The program diagram shows the logical hierarchy of the components of a program. The following icons represent elements used in this tutorial:
I/O options and I/O object names appear to the right of the function symbol. Record or map symbols displayed immediately under functions, in the expanded view, are I/O objects.
You can expand or collapse sections of the program diagram to control what levels of the hierarchy you see in the Program Editor. You can click on the following symbols to expand or collapse a section:
Parts in the program diagram that do not show one of these symbols have no child symbols and cannot be expanded.
A
next to a symbol indicates that the part has not yet been defined.
In this tutorial, you are developing from the top down, starting with the program, then defining the functions, and then the I/O objects. As you define the program, you will perform an intermediate test to ensure that the program is defined correctly.