Hello advisors,
I have created my pmenu inside the library, when i tried to activate in the command line using the following command, the menu didnt appear.
setpmenu hotel.mycatalog.myproject.pmenu;pmenu on
I can see the small image of pmenu created inside my library hotel in the folder name mycatlog.
Any suggestions how to activate the pmenu please?
Thanks
Are you using Enterprise Guide? Or SAS/AF? To what window are you applying the menu?
Have you read this paper? https://www.lexjansen.com/nesug/nesug92/NESUG92062.pdf
I am not using Enterprise Guide and I have tried to associate pmenu using fsedit window. i gave the code in the command line once i press enter nothing pops up.
Can you edit your question and add the PMENU source code ?
Do you have a screen shot ?
There won't be an immediate 'popup'. The menu bar at the top of the window should change to the items in the PMENU definition. If the items are appearing, are you saying that selecting one of them does not drop down or activate a programmed command ?
This is my code. I have saved all the sas files inside hotel-booking-demand(1). This is the screenshot where the created menu is visible. When i run in the command the menu is not coming.
libname hotel'C:\Users\Prithi\Downloads\hotel-booking-demand (1)'; proc pmenu catalog=hotel.mycatalog; filename pgmproc' C:\Users\Prithi\Downloads\hotel-booking-demand (1).pgmproc.sas '; filename gchart' C:\Users\Prithi\Downloads\hotel-booking-demand(1).gchart.sas '; filename report' C:\Users\Prithi\Downloads\hotel-booking-demand(1).report.sas '; filename content' C\Users\Prithi\Downloads\hotel-booking-demand(1).content.sas '; filename sgplot' C\Users\Prithi\Downloads\hotel-booking-demand(1).sgplot.sas '; filename boxplot' C:\Users\Prithi\Downloads\hotel-booking-demand(1).boxplot.sas '; filename month' C:\Users\Prithi\Downloads\hotel-booking-demand(1).month.sas '; filename corr ' C:\Users\Prithi\Downloads\hotel-booking-demand(1).corr.sas '; filename robus ' C:\Users\Prithi\Downloads\hotel-booking-demand(1).robus.sas '; filename tabulate ' C:\Users\Prithi\Downloads\hotel-booking-demand(1).tabulate.sas '; menu myproject; item ' Data Analysis ' menu= d; item ' Explore Dataset ' menu= e; item ' User Input ' menu= u; item ' Visualization by charts ' menu= v; item ' Statistical Analysis ' menu= r; menu d; item ' No of total bookings ' selection= gchart; item ' No of repeated guests ' selection= report; item ' Go back ' selection= g; selection g ' end '; selection gchart ' end;pgm;include gchart;submit '; selection report ' end;pgm;include report;submit '; menu e; item ' Dataset content' selection= content; item 'Correlation between data ' selection=corr; item 'Yearwise Report ' selection=tabulate; selection content ' end;pgm;include content;submit '; selection corr ' end;pgm;include corr;submit '; selection tabulate ' end;pgm;include tabulate;submit '; menu u; item ' Findings ' dialog= mydialog; menu v; item ' Canceleation ratio ' selection= sgplot; item ' Hotel Rates ' selection= boxplot; selection sgplot ' end;pgm;include sgplot;submit '; selection boxplot ' end;pgm;include boxplot;submit '; menu r; item 'Prediction of cancelation ' selection= robus; selection robus ' end;pgm;include robus;submit '; dialog mydialog ' end;pgm;include pgmproc;c hotl %1;c year %2;c mnth @1;submit '; text #1 @1 ' Select a hotel '; radiobox default=1; rbutton #3 @5 ' Resort Hotel ' color=blue substitute=' Resort Hotel '; rbutton #4 @5 ' City Hotel ' color=blue substitute=' City Hotel '; text #6 @1 ' Choose an year '; radiobox default=1; rbutton #8 @5 '2015'; rbutton #8 @10 '2016'; rbutton #8 @15 '2017'; text #15 @1 ' Enter a month: '; text #15 @25 len=4; quit;
Thank you
Sorry I can't help you further. I haven't used pmenus for many years and I am stuck with EG now, so can't test.
You could try with a simple menu see if that works and then add to it.
Thanks for the reply. I got the fsedit window but my menu is not appearing. I am confused what went wrong, so i have again posted the window i got in the community to get help.
PMENUs can be applied to only certain kinds windows that are raised, and may require licensing for some.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.