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

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)

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

@HULK

In EG set the setting to something below 10 minutes.

 

Capture.JPG

 

 

 

 

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.

 

 

View solution in original post

4 REPLIES 4
paulkaefer
Lapis Lazuli | Level 10

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.

paulkaefer
Lapis Lazuli | Level 10

To add to my post, this paper dives into locks.

nhvdwalt
Barite | Level 11
Not sure if it will help, but have a look at this setting in Enterprise Guide: Tools >> Options >> Data >> Performance >> Close data grid....
Patrick
Opal | Level 21

@HULK

In EG set the setting to something below 10 minutes.

 

Capture.JPG

 

 

 

 

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.

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

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
  • 4 replies
  • 2701 views
  • 0 likes
  • 4 in conversation