Deletes the log file results window and clears the work library in the current SAS session.
It also resets titles and footnotes to blank
Provides a clean environment for macros so that there is no interfering data within the work library.
proc datasets lib=work memtype=data kill mt=data nowarn nodetails nolist;
dm 'clear log';
dm 'clear out';
dm 'odsresults; clear';