BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
DerekD_WF
Obsidian | Level 7

I've been searching for answers to these questions, but not finding anything definitive. What Linux permission(s) are needed on a .sas code file for a user to be able to open the file and run the code within Enterprise Guide? Is it just 'Read' permission?

 

Is it any different if you are doing a %include of another .sas file within the script, does that %include'd .sas file only need to have 'Read' permission for the user running the code within Enterprise Guide?

 

Is the 'Execute' permission only needed for a user submitting in batch on Linux?

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

Do not set the execute bit on a .sas file in Unix.  That will just confuse Unix into thinking that it can directly execute the file.  But the file has SAS code, not Unix shell commands, so if you try to execute no good things will happen.

View solution in original post

4 REPLIES 4
Quentin
Super User

I haven't tested, but I would think read permission would be enough.  As long as EG can open the program, you should be fine.  EG isn't really executing the .sas file, it's taking the code in the .sas file and sending it off to the server to execute.  Similarly for a %include, read access should be fine.  

 

Of course if you have a linux server at hand, should only take 10 minutes to test it and confirm.

BASUG is hosting free webinars ! Check out recordings of our past webinars: https://www.basug.org/videos. Save the date for our in person SAS Blowout on Oct 18 in Cambridge, MA. Registration opens in September.
Tom
Super User Tom
Super User

Do not set the execute bit on a .sas file in Unix.  That will just confuse Unix into thinking that it can directly execute the file.  But the file has SAS code, not Unix shell commands, so if you try to execute no good things will happen.

DerekD_WF
Obsidian | Level 7

Thanks for this - I don't plan on executing this specific code in batch, but for future knowledge would the same be true for .sas files that one would want to submit in batch, like scheduled with cron or other means?

Tom
Super User Tom
Super User

Yes.  You would schedule a job to execute SAS itself.  

 

So you might have a line like this to run a SAS program at midnight every night.

0 0 * * * 'cd /myfiles ; sas myprogram.sas'

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1198 views
  • 3 likes
  • 3 in conversation