Previous Topic: Selecting a menuNext Topic: Direct Menu Calling


Displaying Menus

To display a menu use the Toolkit menu display utility which is invoked using the Toolkit command Go to Menu (YGO). The command requires you to specify a menu name: the named menu will appear as an initial menu. The YGO command can be entered either from the i OS command entry display (QCMD), or from any menu with a command request line, such as the i OS programmer’s menu (QPGMMENU), or be called from your own HLL programs. The command is also called by the Toolkit initial program (YINLPGM).

Users may branch to other menus from the initial menu. The branching may either be restricted to a hierarchical tree, or may be unrestricted, that is, branching is allowed to any existing named menu. When using the menu program they may at any point return to the previous menu (F12), or the initial menu (F03), or sign off (SO) altogether.

As well as allowing users to branch to named menus, you may allow them to enter commands directly from the menu display.