I enjoy the html destination default in 9.3 in windows.
But I noticed when I right click in the explorer on a dataset and click "view in excel," the program exports the file to excel, then closes html and reopens listing.
Shouldn't it default back to html (in the work directory)?
Thanks
Hi:
The 'view in Excel' choice issues a new ODS HTML step to create the file for viewing in Excel, which has the side effect of closing your automatic file. So you can get back to what you want by issuing just a bit of code after the view in Excel:
ods listing close;
ods html;
ods preferences;
And that should restart the collection of automatic HTML results again.
Alternately, all the 'view in Excel' choice is doing is causing an ODS HTML step to run. You could take control of this choice by writing your own code in such a way that you do not "bump" into the automatic ODS HTML file:
ods html(id=999) file='c:\temp\seedata.xls';
proc print data=sashelp.class;
run;
ods html(id=999) close;
then you do not bump into the automatic file, it will still collect, but you have created an explicitly named file with a special ID= value (which will appear in the Results Window for you to click on) and when you close it, you won't close the automatic HTML creation.
cynthia
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.
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.