views:

59

answers:

2

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
+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