03-08-2011 06:43 PM
02-27-2013 10:38 PM
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?
03-09-2011 07:22 AM
03-09-2011 03:58 PM
03-09-2011 04:43 PM
03-09-2011 11:18 PM
02-28-2013 12:24 AM
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.
02-28-2013 02:51 PM
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.