03-05-2015 12:15 PM
Can I write SAS Log to multiple places ?
When I use PROC PRINTO command it only writes log in the file and not in the SAS efault log. I want to write to both. How can I achieve the same ?
PROC PRINTTO LOG="C:\Users\rkpanda\&datep1..log" NEW;
03-05-2015 12:29 PM
I would use system option ALTLOG you get the "regular" log and one being written to ALTLOG location. You have to start SAS with the option but you can accommodate that.
If you still like using PROC PRINTTO. You can just copy the PRINTTOed log back to LOG at the end of the program.
03-05-2015 12:42 PM
The folder where I weant to store the logs, will change for every program. So I guess ALTLOG will not work . Also I don't have proper authorization to change SAS system settings.
With respect to the PRINTTO procedure, can I do the reverse ? Copy from the default log back to a file.
03-05-2015 01:00 PM
Thanks Paige for your reply. I want to watch the Default Log printing from my SAS session, to check the progress of the job. I want the log stored in a folder location for record keeping purpose, so that in future if I need to check something I can go back to it.
Having multiple stored log is not my purpose.
03-05-2015 01:23 PM
The logging framework SAS(R) 9.4 Logging: Configuration and Programming Reference, Second Edition is probably already active.
It are the same guys you need to ask for your wanted service as the -altlog system option. Wat is the problem asking them?