Thanks much everyone. Lots to respond to. @Chris and @Cynthia, appreciate your weighing in that INSERT feels safe. Glad to hear it. And appreciate Cynthia warning me against being bold enough to completely redefine sasautos. Seems like better to respect the SAS admin. : ) @Tom re SASEvenvironment/SASMacro, Thanks for the hints as to where I should look for SASEnvironment/SASMacro. You are correct, /SASEnvironment is a subdirectory of the current working directory. Because we have the X statement enabled, It was easy for me to find the working directory with just "x PWD;" whch revealed the working directory for my session in the server is [SAS-config-dir]/Lev1/SASApp. In there I see /SASEnvironment/SASFormats , /SASEnvironment/SASMacro , and /SASEnvironment/SASCode. I think /SASFormats is for format catalogs defined on the server (see e.g. http://support.sas.com/kb/40/103.html, which describes how this directory gets added to fmtsearch in the default install), and /SASMacro is the default server autocall library (for admins to add macro definitions that should be available to every sever session). In my case, both are empty. It looks like /SASCode has code for scheduled DI jobs. So this helps me understand Cynthia's point: if one day my admin did start adding macro definitions, I would want to them to be available to my programs. So completely redefining sasautos to exclude this directory would be a mistake. @Tom re whether best order for sasautos search is (/project /corporate /SAS_supplied) or (/SAS_supplied /corporate /project), I'm a believer in the former. When I was responsible for setting up an install a year or so ago, I looked to SAS-L for some advice on this. I was convinced after a few emails that (/project /corporate /SAS_supplied) is the better option. Main points being that if you use the (/SAS_supplied /corporate /project) approach, any time there are additions to either the SAS_supplied or corporate macro libraries, you risk breaking your user's programs if there is a collision in macro names. People don't like when their programs work one day and not the next. So I think it's better to give the user's code priority. This puts more power in the hands of users, even allows them to redefine/hijack corporate standard macros if they want. Of course the name collision still can cause confusion (I look at the code for project X and assume the call to %MAC is the corporate standard %MAC, not knowing that it has been redefined), but at least the program works. The thread is: http://listserv.uga.edu/cgi-bin/wa?A2=ind1101c&L=sas-l&D=0&O=A&P=36772 . Thanks again. --Q.
... View more