Hi, I'm new to SAS and I'm doing the tutorial. When I type in this code in the editor window:
data test;
set mylib.productsales;
run;
proc print data=test;
run;
I don't get the data printed in the result viewer, however it does create a new file called test in the working directory. The log file says "no output destinations active". What is wrong? I have SAS 9.4
Thanks
SAS Base. when I do so the log comes up with this
74 ods html;
NOTE: Writing HTML Body file: sashtml8.htm
ERROR: Physical file does not exist, C:\Users\Morten Pedersen\Desktop\SAS - bibliotek\sashtml8.htm.
ERROR: No body file. HTML output will not be created.
75 proc print data=test;
76 run;
Think i figured it out myself. The dicrectory it was saving the html to didn´t exist. It is just a bit strange when I never specified it myself. What is normally the default?
@mortenhp wrote:
Think i figured it out myself. The dicrectory it was saving the html to didn´t exist. It is just a bit strange when I never specified it myself. What is normally the default?
With Base SAS using the toolbar, go to Tools>Options>Preference. Go to the Results Tab. Your default would be either a specified folder under the checked "Create Html" or the Work Folder. I might suggest leaving the Use Work Folder checked.
If you use, or copied someone's code with ODS _all_ close that is a common cause of the no destinations open. I am not sure how that may affect the destination folder though if you close SAS and had the "Save setting on exit" on the preferences General tab marked there could be some interaction.
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.