BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ronein
Onyx | Level 15

Hello

Lets say I have 2 SAS sessions that are open.

Lets say that in one sas session I update a permanent data set that is saved in a permanent library.

Lets say that in second sas session I am using this permanent data set (So I am using this data set but I dont update this data set).

My question-

Is it possible to update data set in one sas session and use this dats set in another sas session (Run both sas sessions in same time)?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20
Quick answer - no.
The update operation will put a write lock on the data set.
You can use the FILELOCKWAIT option if your update is fairly quick and don't want your programs to abend.
Other options for you is to use SAS/SHARE (9.4 only), SAS SPD Server or store the data in an external database.
Data never sleeps

View solution in original post

3 REPLIES 3
LinusH
Tourmaline | Level 20
Quick answer - no.
The update operation will put a write lock on the data set.
You can use the FILELOCKWAIT option if your update is fairly quick and don't want your programs to abend.
Other options for you is to use SAS/SHARE (9.4 only), SAS SPD Server or store the data in an external database.
Data never sleeps
yabwon
Onyx | Level 15

Here are some interesting readings on solving "files locking" problem:

1) https://www.lexjansen.com/wuss/2014/69_Final_Paper_PDF.pdf

2) https://www.lexjansen.com/wuss/2015/60_Final_Paper_PDF.pdf

3) https://mwsug.org/proceedings/2016/BB/MWSUG-2016-BB31.pdf

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 660 views
  • 5 likes
  • 4 in conversation