BookmarkSubscribeRSS Feed
ardobbins
Obsidian | Level 7

I'd like to add the Username associated with the Work folder on our server so we can quickly identify the user. Is this possible and if so how can it be done? 

 

Our current folder format is like - _TD9904_CSSSASAPP_

 

This is a Windows Server 2012R2 Environment. We use Eminer and EGuide in our Work folders.

 

 

Thanks! 

4 REPLIES 4
Kurt_Bremser
Super User

AFAIK, there is no option to influence the automatically created directory name. But you could set up paths for the individual users in your physical work location and put that into the -work commandline option:

path_to_sas\sas.exe -work c:\temp\%username%
Kurt_Bremser
Super User

I need to add to my previous post: if you use the cleanwork utility to get rid of orphaned work directories, you must now write a script that runs cleanwork individually for every username subdirectory.

SASBob
Fluorite | Level 6

That is true, But we are a small SAS shop and all of my users are not logging in at night so I have that clean up written into by metadata backup job that just deletes all folders beyond  "LEV1\SASUser". I've had this setup working for 10 years now. It works great for us.

SASBob
Fluorite | Level 6

I modified the SASv9_usermods.cfg file located in   .....SAShome...\Lev1\SASApp    folder and added:

 

/* Setup the MYSASFILES system variable                         */
-SET MYSASFILES "D:\SASUser\Lev1\SASUser\!username"

 

This way all of my users folder are in one central location so I can find them quickly and also, it's easy to clean them up this way.(when users sessions are interrupted). I have a job that cleans the folders up every night)

 

 

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 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1090 views
  • 0 likes
  • 3 in conversation