You define the name
of the item in the ITEM statement and specify the SELECTION= option
to associate the item with a subsequent SELECTION statement. The
SELECTION statement then defines the actual command that is submitted
when the user chooses the item in the menu bar or menu.
You are likely to use
the SELECTION statement to define a command string. You create a simple
alias by using the ITEM statement, which invokes a longer command
string that is defined in the SELECTION statement. For example, you
could include an item in the menu bar that invokes a WINDOW statement
to enable data entry. The actual commands that are processed when
the user selects this item are the commands to include and submit
the application.
Note: If you are using PROC PMENU
to issue any command that is valid only in the PROGRAM EDITOR window
(such as the INCLUDE command), then you must have the windowing environment
running. Also, you must return control to the
PROGRAM
EDITOR window.