How do I send output from a SAS Procedure to the Output or Log window?
+1
A:
By default, SAS procedure results are directed to Output window. I do not think you can direct them to Log window.
However, I think you can direct them in an external file using PROC PRINTTO.
For more control, you can use ODS DOCUMENT or ODS OUTPUT. Read manual for more information.
Kevin Qin
2010-05-18 07:44:38
+1
A:
You can easily redirect the output of the log window with the proc printto as suggested, here is an examble
proc printto log="c:\temp\log.txt"; run;
YOUR CODE
*code to stop writing on the external file;
proc printto new; run;
Fabio Prevedelli
2010-05-21 07:16:09