Help using Base SAS procedures

open a menu with code

Reply
Regular Contributor
Posts: 241

open a menu with code

Hello everyone,

Is there any SAS code(not in command line ,but just in SAS program code,it should be interactively,such as call a macro that can run  'SAVE AS' ) that can operate SAS menu?

Give an example:

I want write a row of SAS code(e.g:"%sysfunc(SaveAs))" ,after I run that code, it will show me "SAVE AS menu"(just as if I click with my mouse on : file-->save as)

Thanks

Super User
Super User
Posts: 7,970

Re: open a menu with code

Posted in reply to GeorgeSAS

Not really.  I mean you could use proc window or something to get user input, then save something to a file by using a datastep and file.  Why though?  SAS scripts aren't really the place to be doing UI's?  Give a more verbose description of the problem.

Super User
Posts: 11,343

Re: open a menu with code

Posted in reply to GeorgeSAS

Pretty much most of the SAS commands can be executed with the DM statement. You might be looking for DLGOPEN

Super User
Super User
Posts: 7,059

Re: open a menu with code

Posted in reply to GeorgeSAS

Use the DM statement to call a command line command.

Use the DLGSAVE to open the SAVE As window.

dm 'dlgsave';

SAS(R) 9.2 Companion for Windows, Second Edition

Super User
Posts: 3,255

Re: open a menu with code

Posted in reply to GeorgeSAS

Note that previous posts suggestions will only work in SAS Display Manager. If you use Enterprise Guide then it can't be done.

Ask a Question
Discussion stats
  • 4 replies
  • 228 views
  • 0 likes
  • 5 in conversation