Purpose
Deletes the log file results window and clears the work library in the current SAS session.
It also resets titles and footnotes to blank
Arguments
None.
Called From
Open code
Notes
Provides a clean environment for macros so that there is no interfering data within the work library.

%macro clean_environment;
proc datasets lib=work memtype=data kill mt=data nowarn nodetails nolist;
quit;
footnote;
title;
dm
'clear log';
dm
'clear out';
dm
'odsresults; clear';
%mend;