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.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.