cancel
Showing results for 
Search instead for 
Did you mean: 

No output destinations active

mortenhp
Calcite | Level 5

No output destinations active

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
Highlighted
Reeza
Super User

Re: No output destinations active

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

Re: No output destinations active

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

Re: No output destinations active

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

Re: No output destinations active


@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.