02-10-2017 11:28 AM
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;
Any help would be appreciated.
02-10-2017 11:32 AM
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;
02-10-2017 11:47 AM
You likely ran some code with either:
ODS _all_ close;
ODS HTML Close; with no other ODS destinations active.
add a PATH="operating system path" to control where your html output goes.
02-10-2017 11:54 AM
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:
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.
02-10-2017 02:57 PM
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.
02-10-2017 03:29 PM
%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.