BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
alepage
Barite | Level 11

Hello,

 

A colleague of mine is using a sas program to update a particular dataset.  But when the dataset is already used by either another process or user, we get the error message lock.  

 

Is there a way to check if the dataset to be updated is free before updating it and if not how can we "liberate this file"

Regards

1 ACCEPTED SOLUTION
3 REPLIES 3
Kurt_Bremser
Super User

On a UNIX (Linux) system, you can remove the file before writing the dataset.

Also on UNIX, the fuser command can be used to display the process(es) having an open file handle on a particular file.

alepage
Barite | Level 11
if we find that a process have an open file handle on a particular one, is there a way to liberate this file using a unix command and if so how to do that

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 1517 views
  • 2 likes
  • 2 in conversation