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

Hi folks, 

 

We have two SAS groups. Each one need to access specific file path navigation. In order to configure it, we create a second Workspace Server on SAS MC. Both Workspace Server refers to the same script to start workspace defined on COMMAND properties (ex: /sas/config/Lev1/SASApp/WorkspaceServer/WorkspaceServer.sh).

 

There is any way to, using extended attributes or command line or object server parameters, define different config file for each one? Is it possible to add -CONFIG option in COMMAND line? We need to define a different WORK area for these groups. 

 

Regards,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
MariaD
Barite | Level 11

Thanks all. Yes, I know is only a logical definition, but it's only to define the correct file path navigation for each group. 

 

We resolve the problem adding a -WORK option directly on command line. So, now each logical workspace server has it owns work area defined.

 

/sas/config/Lev1/SASApp/WorkspaceServer/WorkspaceServer.sh -WORK "/<group_area>/saswork" 

 

Thanks!

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

The usual approach is for each workspace server to have its own configuration directory. In your case a second one could use:

/sas/config/Lev2/SASApp2/WorkspaceServer. Then you just make the required changes in the usermods config.

Anand_V
Ammonite | Level 13

Hi @MariaD 

 

You can add a section of IF condition (loops in bash scripting) to evaluate users based on groups and then pass the work parameter dynamically to allocate work directory as per the user group. This can be done in the workspace_usermods.sh file which is read during launch of workspace server.

 

USERMODS_OPTIONS="-work <full-path-to-work>"

 

Creating workspace server from SAS MC will only create logical instance of it in metadata referring to same physical location. if you wish to have separate work space servers, then you will have to install it using SAS deployment wizard launched from SAS software depot where in you can then set work directories for respective servers.

 

Thanks!

MariaD
Barite | Level 11

Thanks all. Yes, I know is only a logical definition, but it's only to define the correct file path navigation for each group. 

 

We resolve the problem adding a -WORK option directly on command line. So, now each logical workspace server has it owns work area defined.

 

/sas/config/Lev1/SASApp/WorkspaceServer/WorkspaceServer.sh -WORK "/<group_area>/saswork" 

 

Thanks!

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 776 views
  • 1 like
  • 3 in conversation