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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.