Hi SAS Team,
I am getting "WARNING: No output destinations active" for PROC DATASET DELETE.
I tried nowarn & nolist options but still getting the error.
proc datasets nowarn;
delete output_process;
run;
Any help would be appreciated.
Thanks,
Ana
Not sure how to prevent the warning in general. But if you are just deleting dataset then use PROC DELETE. They tried to hide it for awhile but it is back now with added functionality.
proc delete data=output_process;
run;
You likely ran some code with either:
ODS _all_ close;
or
ODS HTML Close; with no other ODS destinations active.
Try
ODS HTML;
add a PATH="operating system path" to control where your html output goes.
PROC DATASETS will require that you supply the location of the data set. This could be done in your program by adding to the PROC statement:
library=work
If you were to switch methods, as Tom suggested, you would then be supplying a data set name using DATA=. In that case, single level data set names are assumed to be in the work folder.
Hi,
One thing i want to mention is - Output_process dataset is being used in different SAS program's macro & referenced it as Global variable , as this program goes in loop. I am clearing out the older data by proc dataset delete .
Toms suggestion of PROC DELETE did not work for me.
Thanks,
Ana
%GLOBAL operates within the context of a single program. There is no way to make a macro variable available across programs.
That being said, there is a process that applies to interacting platforms, %SYSLPUT but it is not applicable to the majority of cases where multiple programs run.
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.