BookmarkSubscribeRSS Feed
epniv
Obsidian | Level 7

Hi All,

 

Something odd with output datasets, or other output file types, with our Linux Studio implementation.

When running batch SAS files on our server the output file permission are "rw-rw-r--".  This is for datasets or XLSX files, etc.

However, when running the exact same code in Studio the output file permission are "rw-r--r--".   This means that the datasets are not  "write" shareable within the same group of staff.

I've made sure that all staff have "umask 002" in their .bash_profile file.  Which should, and does, lead to creating rw-rw-r-- file permissions, like in batch processing.

Does anyone know if there is a configuration change that can be made for Studio to default to rw-rw-r--?

We do know that the permissions can be set via an X command within Studio code (or other programmatic methods) but with many different datasets created via some macros and names that are not always constant, this is not preferrable.

 

Thanks!

4 REPLIES 4
Quentin
Super User

Sounds like this is Studio connected to a SAS 9 linux server, not Viya, is that correct?

 

Just curious, is there a difference in the owner of the output file when the job is run in batch vs via Studio?

 

I think it's pretty common for scheduled batch jobs to be run under a different account.

 

This related thread might be helpful:
https://communities.sas.com/t5/Administration-and-Deployment/Applying-umask-007-to-all-with-possible...

 

It links to:
https://sas.service-now.com/csm/en/setting-umask-and-ulimit-values-for-sas-sessions-on-unix-and-linu...

 

epniv
Obsidian | Level 7

Hi Quentin,

 

Thanks for the questions, comments and links.

This is not a Viya system.  It is Studio connected to a SAS 9 linux server, AnalyticsPro installation.  Just one server, no metaserver.

Yes, these are the same individual users generating the output in Studio vs. batch.  So, not scheduled batch jobs.

The KB0036220 link looks promising but I'll need to do some testing on that or wait for some more comments from others who may have solved this.

quickbluefish
Barite | Level 11

A bit off-topic, but I've taken to connecting to the SAS Studio server via Putty and just doing everything - developing and running code, file management, etc. - via the command line (and various bash functions / aliases stored in ~/.bashrc).  I open this connection with WinSCP (which subsequently launches Putty), and this gives the added benefit of being able to download all files at once - something that there's still not a simple, built-in way to do with the Studio interface.  

 

Anyway, you might try that if there's no more direct way - just make a simple function that uses chmod to convert permissions on all *.sas7b* files, for example.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 4 replies
  • 292 views
  • 0 likes
  • 4 in conversation