Hi!
How can i set timeout for locks on objects (for example: tables) in EG.
My case: i opened a table from some library in EG, now i see the content of the table. Then i do nothing and see, that this table close about 40-50 minutes and lock on this object no longer exists. If i try to re-write this object from another session, when this table open in my current session - i have an error:
a lock is not available for MY.TABLE.
Lock held by proccess ****.
I need to know, on which parametres depends the time of blocking on the object?
Thanks!
P.S. Sorry for my English)
In EG set the setting to something below 10 minutes.
In your code use:
options filelockwait=10;
This way your first EG session should release a table after less than 10 minutes but the code in your 2nd EG project will wait for up to 10 minutes for a lock on the table to be released before it fails.
If you close the table, the lock should disappear. If you're in EG, you can go to Tools >> View Open Data Sets... and see if it's still open.
The only other thing I could find that might be useful is this knowledge base article talking about how you can set and wait for locks.
To add to my post, this paper dives into locks.
In EG set the setting to something below 10 minutes.
In your code use:
options filelockwait=10;
This way your first EG session should release a table after less than 10 minutes but the code in your 2nd EG project will wait for up to 10 minutes for a lock on the table to be released before it fails.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.