BookmarkSubscribeRSS Feed
Tegan
Calcite | Level 5

Now that I've slaved over code that other people will use, can I make it a read-only file?

I want people to save a copy in order to edit the export query.

5 REPLIES 5
Kurt_Bremser
Super User

Use the operating system's access control. (my preferred method for .sas files).

If it is part of an EG project, save the project in a folder in the metadata and set the access rights there.

ballardw
Super User

And make a backup in a non-shared location...

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Or use a version control system (SVN, GIT etc.), e.g. save the tool in your tools area, then version control external that code to your local project.

Kurt_Bremser
Super User

An other idea: put the part that may need editing into an include file, and have users make a local copy of that. The main program would then do a %inc '$HOME/something.sas'; and be saved without write access for the users. Have a provision for the log of every run to be saved permanently, so you can show it's the include that is causing the odd ERROR.

jakarman
Barite | Level 11

I you are wanting to make a program read-only because you are doing release management ...

That is you are following the process of: Develop Test Accept Production DTAP than design the host control accordingly and do some management arround that. (ITIL) .

This is the higher level process to think about.

Some technical approaches can help you to make thing easier around this. That are:

- reuse of accessable available components in the DTAP lifecycle. A filename approach (concat) with %inc is something. 

- The needed host access controls are commonly known and rather good to understand

Some people have difficulties with the difference between horizontal and vertical.

- Let release-management by a vertical management eg DTAP approach

- Version-control has the goal on segerating the work of developers working in a project that is a horizontal approach.

vertical and horzizontal are two different directions.....

---->-- ja karman --<-----

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 4839 views
  • 2 likes
  • 5 in conversation