BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasecn
Quartz | Level 8

Hello:

 

I have a general question. I have a EG project (.egp file). I would like to make the code (the code in each process flow only not the .egp file) read only. i.e. when the end-user used the project, they can run it and get result, but they cannot modify the code.

 

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

I work with a UNIX server, so the workflow is this:

  • create a directory on the server outside your home directory
  • create symbolic links to this directory in the home directories of all users (including you)
  • in Enterprise Guide, open the program, select Save - Save as, Servers, your server, Home, and then the link to the directory
  • make sure that, when viewed from a commandline on the server with ls -l, the directory and files belong to you, and have a permission string of drwxr-xr-x (directory) and -rw-r--r-- (files)

Then, nobody but you can update the file. But they can still embed the code back into the project and edit it there.

EG project files are not really good for this type of collaboration.

View solution in original post

5 REPLIES 5
sasecn
Quartz | Level 8

Can you provide some steps how to save the code as .sas file on the server and set permissions from the EG project (.egp file)? Do I have to save each program code in each process flow? 

Sorry for bother with these questions. If you have any recommended articles, please let me know.

Thanks, 

 

AhmedAl_Attar
Ammonite | Level 13

@sasecn 

Beside reading the Enterprise Guide Help Documentation, have a look at this tutorial Getting Started with SAS Enterprise Guide , it may give some tips

 

Hope this helps,

Ahmed  

Kurt_Bremser
Super User

I work with a UNIX server, so the workflow is this:

  • create a directory on the server outside your home directory
  • create symbolic links to this directory in the home directories of all users (including you)
  • in Enterprise Guide, open the program, select Save - Save as, Servers, your server, Home, and then the link to the directory
  • make sure that, when viewed from a commandline on the server with ls -l, the directory and files belong to you, and have a permission string of drwxr-xr-x (directory) and -rw-r--r-- (files)

Then, nobody but you can update the file. But they can still embed the code back into the project and edit it there.

EG project files are not really good for this type of collaboration.

sasecn
Quartz | Level 8

Thanks for the details. Even-though, I have to ask our company's IT to do this. But that is what I was looking for.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1970 views
  • 0 likes
  • 3 in conversation