1

How do I send output from a SAS Procedure to the Output or Log window?

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.