PROC PRINTTO closes the current files opened by PROC PRINTTO and reroutes subsequent SAS logs and procedure output to their default destinations.
proc printto; run;