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-2024.png

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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