Invoking a dialog from a selection panel

Figure 1 shows a selection panel on which the user has selected option 3. When the user presses Enter, option 3, the INVENTORY application, is given control.

Figure 1. Sample selection panel
 ------------------------------- BUILDING 661 ----------------------------
 SELECT OPTION ===> 3_

   1  PAYROLL    - Add, update, or delete employee records
   2  MAILING    - Add, delete, or change address of employee
   3  INVENTORY  - Status of stock
   4  SCHEDULE   - Building maintenance

 ENTER END COMMAND TO TERMINATE.