- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi EVERYONE
I want to protect my sas code with password. So no one can open sas code without password.
I know we can protect sas dataset with password. But i am not sure how can i add password to my sas program.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You should confirm with your company if the practice is allowed. In some cases that action could result in disciplinary actions because the company owns your work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
its allowed in company! i want to save my sas program with password protection in folder.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You'll need to use OS tools. I'm curious as to why this is needed? Is it to maintain a 'source of truth' or backups? If so, this is definitely not the best approach.
@sam1231 wrote:
its allowed in company! i want to save my sas program with password protection in folder.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
there are better ways to do what you are asking. Talk to you Admin have them setup a specific location that only allows authorized users access. That is their job not yours. What happens if you die and the company needs to run the process???? I would hate to have to follow behind that practice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The only way I know of doing this using SAS is to store your SAS program as a SOURCE entry in a SAS catalog then you can password-protect that.
What type of protection do you have in mind? If it is simply to stop others changing your software then using a version-control tool is a much better option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi saskiwi,
i want to save my sas program in folder with password protection. so if anyone one to open it they need password to read/write sas program
I hope it helps to clear my question.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
>i want to save my sas program in folder with password protection
You can use a ZIP file then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
i want to save my sas program in folder with password protection. so if anyone one to open it they need password to read/write sas program
Why don't you just use operating system security? Either Windows or *nix makes this trivial to configure.
so if anyone one to open it they need password
Does it matter when someone shares the password with others?
Another option is compiled macros. Users could execute your macros, but would not be able to alter them. With proper options within the macro they won't even be able to see the code in the log. Hit the doc for details.
Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The use cases to read protect SAS code via a password and not just on OS folder level are rather rare. That's why you get so much "resistance".
What would help: Share with us your use case. Explain WHY you want to protect the source code this way. May be there are other/"better" ways with less negative impact to achieve what you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It would help us give you the best answer if you explained why you want to password-protect your SAS programs. You have clearly explained what you want, but not why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
the basic who, what, when, where, why questions that need to be answered to preformed and supply the final product.