Architecting, installing and maintaining your SAS environment

tracking sas temp work dir

Reply
Super Contributor
Super Contributor
Posts: 358

tracking sas temp work dir

Hello friends, have a question reg. tracking sas temp dir,

 

we are using sas 9.4 on linux. if i have root access, i know i can do cd sas_work... or cd sas_util to see user's temp sas datasets and other files - so if i do cd to temp sas dir while user running their jobs, is it (cd to temp sas dir) going to interfere their session? is it okay to do so? - thank you...

Trusted Advisor
Posts: 1,314

Re: tracking sas temp work dir

Hi,

 

quick answer would be: as long as you only want to list directories and files, no problem at all. The only problem may come when you open a sas table and you lock that file from the SAS session. But you never will do this with just a cd command.

Super Contributor
Super Contributor
Posts: 358

Re: tracking sas temp work dir

Posted in reply to JuanS_OCS

thank you Juan...

however after doing cd sas_work or cd sas_util, i do ls -lt to see sas datasets and other files in details - and if i understand you correctly, i don't think it should affact anything and user experience any kind of error (like table locking or so...) from my end...

Super User
Posts: 5,430

Re: tracking sas temp work dir

I think this is pretty much the same way that Environment Manager collects its OS related stats.
Data never sleeps
Super Contributor
Super Contributor
Posts: 358

Re: tracking sas temp work dir

appologize if any comment has deleted...my internet not working fine today and some system issues....

Trusted Advisor
Posts: 1,314

Re: tracking sas temp work dir

Hi again,

 

indeed, ls or ll commands should not affect your users.

 

A recommendation, as best practice, specially towards the automatic cleaning of the work directories: it is way better to do just a ll/ls of the directory you want to list, rather to do a cd, to enter the directory, and then run a generic ll/ls to list the contents of that directory.

Ask a Question
Discussion stats
  • 5 replies
  • 305 views
  • 3 likes
  • 3 in conversation