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

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

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
  • 1646 views
  • 2 likes
  • 2 in conversation