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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.