This PROC PRINTTO steps restores the default output destination. See The PRINTTO Procedure for documentation on PROC PRINTTO.
proc printto; run;