PROC PRINTTO routes subsequent logs and procedure output to their default destinations and closes both of the current files. See Portion of Log Routed to the Default Destination .
proc printto;
run;