The generated program has the following structure and naming conventions:
The top procedure has the same name as the program. It is a repeating procedure with mapset names the same as the program name.
RETAIL0 in the example above is a menu procedure because the ALL option was selected.
The next level down consists of a procedure tree for each of the tables.
Where the table record contains more fields than can be processed on a screen, additional subsidiary procedures are created as shown by the RETAIL002 procedure tree in the above example.
If the main table can be accessed by more than one index then a menu is created at the top of the procedure tree with options for each of the indexes. This is illustrated by the procedure tree RETAIL003 in the example above.