This section contains two examples of menus. The first example shows a basic menu used within a Process Module (PM). The second one shows a multi-level menu generated using a Global Storage (GS) with a PM.
This example shows a menu with five selection items. The LAYOUT SCREEN definition in the Declare Section defines the menu display format. This includes the placement of the menu, rendition, and the definition of each selection item.
The Detail Section contains the GENERATE and MENU statements. The GENERATE statement creates the menu and the MENU statement displays the menu. Once the menu is active and a selection is made, the proper action is taken for that selection. The FLUSH statement removes the menu from memory when the "Leave Customer Update" selection is made.
For more of an explanation of Example 1
This example shows multi-level menus generated in a single PM.
For more of an explanation of Example 2
For more of an explanation of Example 3