I see many *.png files in SASApp location, run by sassrv and I would like to know where this is controlled or is this a pure developer control (%stpstart & % stpend)? Is this controlled via config file or STP reserved macros? (win 9.4 m7 x64 install)
R
Hello
Often SAS procedures produces graphics as png files. When no path is specified for these files they are dropped into the SAS App folder.
In addition to png files this happens with datasets too.
One approach to resolve this is by changing the working directory to SAS Work Location. The following link shows how to change the working directory
https://blogs.sas.com/content/sgf/2018/05/18/how-to-change-your-working-directory-for-sas-with-the-d...
Hi Sajid, thank you for your time and reply. I do have the WORK location in my config files and I confirmed it via proc options as well. That is why much surprised when I saw those png and (thank God) few *.sas7bdat. Any other idea? So basically sounds like it is a developer training thing.
Hello @shoin
Asking each and every user to make changes to every code is neither practical not enforceable.
A better approach is to add the following to the end of autoexec_usermod.sas for the workspace server on the SAS server.
data _null_;
rc=dlgcdir("%sysfunc(pathname(WORK))");
put rc=;
run;
This will update the current working directory to the users work directory. Once the session terminates everything is automatically removed.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
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.