BookmarkSubscribeRSS Feed
Amali6
Quartz | Level 8

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

7 REPLIES 7
ChrisNZ
Tourmaline | Level 20

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

Amali6
Quartz | Level 8

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. 

RichardDeVen
Barite | Level 11

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 ?

Amali6
Quartz | Level 8

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.

Amali6_0-1589821026437.png

 

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

ChrisNZ
Tourmaline | Level 20

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.

Amali6
Quartz | Level 8

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.

RichardDeVen
Barite | Level 11

PMENUs can be applied to only certain kinds windows that are raised, and may require licensing for some.

  • Product: BASE SAS
    • WINDOW (raised with DISPLAY statement)
    • %WINDOW (raised with %DISPLAY statement)
  • Product SAS/FSP
    • A window displayed in FSEDIT, FSVIEW, FSLETTER, etc... See more
  • Product SAS/AF
    • AF / AFA command, PROC DISPLAY 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 726 views
  • 3 likes
  • 3 in conversation