BookmarkSubscribeRSS Feed
GeorgeSAS
Lapis Lazuli | Level 10

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

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

ballardw
Super User

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

Tom
Super User Tom
Super User

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

SASKiwi
PROC Star

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 821 views
  • 0 likes
  • 5 in conversation