PROC PRINTTO routes the output to an external file.


   proc printto file='external-file' new;
   run;