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
See my SASGF21 paper: https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/How-to-Deal-With-Locked-Data-Sets-on-UNI...
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.