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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.