Features: |
PROC PMENU statement option: CATALOG=
MENU statement SELECTION statement SUBMENU statement |
libname proclib
'SAS-data-library';
proc pmenu catalog=proclib.menucat;
menu project;
item 'File' menu=f; item 'Edit' submenu=editmnu; item 'Scroll' menu=s; item 'Help' menu=h;
menu f; item 'Goback' selection=g; item 'Save'; selection g 'end';
submenu editmnu sashelp.core.edit;
menu s; item 'Next Obs' selection=n; item 'Prev Obs' selection=p; item 'Top'; item 'Bottom'; selection n 'forward'; selection p 'backward';
menu h; item 'Keys'; item 'About this application' selection=hlp; selection hlp 'sethelp user.menucat.staffhlp.help;help'; quit;
Goback
as
the first selection under File. The value of the SELECTION= option
corresponds to the subsequent SELECTION statement, which specifies
END as the command that is issued for that selection. The second ITEM
statement specifies that the SAVE command is issued for that selection.menu s; item 'Next Obs' selection=n; item 'Prev Obs' selection=p; item 'Top'; item 'Bottom'; selection n 'forward'; selection p 'backward';