Any suggestions on how to use windows file locking to lock SAS programs?
We have two people working on a large SAS program (windows workstations accessing files on a server share). With Word documents and many other documents if one person opens the file the next person to try to open it gets a message saying it is already in use. Any way to have the SAS editor lock the file in a similar fashion?
Personally I find Word's habit of locking a file very annoying.
That page definitely talks about locking individual entries in a catalog.
But you are probably better off implementing a change control process instead. You could use software like subversion or even just RCS. Or you could setup a process were changes are saved to either a different directory or different file name and changes to the production file is only made in a coordinated fashion.
Tom's suggestion of using a change control process is a good one. We use TFS in our organisation and it allows you to lock a program if someone else has checked it out for changing. It also allows more than one person to work on the same program simultaneously and then merge the changes when checking them back in.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.