BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jacksonan123
Lapis Lazuli | Level 10

I have been using the following code to write to a log file while running a program to avoid the log containing the output.

 
proc printto log='/folders/myfolders/BootRIT/filenOLD.LST/';

However I get this error while running SAS University edition.

 

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 /*PROGRAM TAKES A CONTROL FILE AND DUPLICATES IT N TIMES*/
63 /*THE $DATA LINE IS ALSO CHANGED TO MATCH THE FILE NAME*/
64 proc printto log='/folders/myfolders/BootRIT/filenOLD.LST/';
65 RUN;
 
ERROR: Resource is write-locked by another user. File =/folders/myfolders/BootRIT/filenOLD.LST. System Error Code = 11.
 
ERROR: File is in use, /folders/myfolders/BootRIT/filenOLD.LST.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINTTO used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
 
<br\> WARNING: Maximum log size exceeded. Click here to view full log.
 

Can someone tell me what I have done wrong and how to get the log to be written to a file?

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

jacksonan123
Lapis Lazuli | Level 10

Your suggested code worked.  The Bootrit was a folder that I had created.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 11825 views
  • 0 likes
  • 2 in conversation