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.
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.
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.