BookmarkSubscribeRSS Feed
ReNSFW
Calcite | Level 5
Hey Can you confirm that the Sas job is initiated from a .bat?

If so does the .bat set the log location?
If so thats probably what has the log file open. I am wrestling with the same issue atm.

My options (i am yet to investigate) in order of preference is. Disregard lock, find a read only access method, Duplicate then delete.

Hope this helps
SASKiwi
PROC Star

If you are using the sasbatch.bat file to execute SAS batch jobs, all this file is doing is calling sas.exe with some options, one of which might be the -LOG option to specify the name and location of the SAS log file. It's the SAS executable that is creating and locking the log file, not sasbatch.  

ReNSFW
Calcite | Level 5

User said they were using SAS in batch.

SASKiwi
PROC Star

There are various ways of invoking SAS in batch mode. You can call the SAS command directly from a command line or via a scheduling tool, run the SAS-provided sasbatch BAT file, or run SAS via a user-written BAT or script file. You will need to provide more details of your problem before we can help.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 18 replies
  • 2763 views
  • 0 likes
  • 7 in conversation