BookmarkSubscribeRSS Feed
mortenhp
Calcite | Level 5

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

4 REPLIES 4
Reeza
Super User
You have no output destinations active. Are you using SAS Studio, EG or Base?
This will turn on the destination which is the modern default these days:

ods html;
mortenhp
Calcite | Level 5

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;
mortenhp
Calcite | Level 5

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?

ballardw
Super User

@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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 12074 views
  • 2 likes
  • 3 in conversation