I have been using the following code to write to a log file while running a program to avoid the log containing the output.
However I get this error while running SAS University edition.
Can someone tell me what I have done wrong and how to get the log to be written to a file?
Thanks
Well, first off I assume this is a typo:
proc printto log='/folders/myfolders/BootRIT/filenOLD.LST/';
As the last / is not correct.
What is BootRIT? Do you have write access to it, is it being used by the system? Try a file somewhere else:
proc printto log='/folders/myfolders/filenold.log'; run;
Note the various updates I made to the code.
Well, first off I assume this is a typo:
proc printto log='/folders/myfolders/BootRIT/filenOLD.LST/';
As the last / is not correct.
What is BootRIT? Do you have write access to it, is it being used by the system? Try a file somewhere else:
proc printto log='/folders/myfolders/filenold.log'; run;
Note the various updates I made to the code.
Your suggested code worked. The Bootrit was a folder that I had created.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.