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.

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1802 views
  • 0 likes
  • 4 in conversation