

In EG's Tools->Options->SAS Programs, I checked "Submit SAS code when server is connected" and inserted this code: (I used EG 7.15, but I'd expect it to work for any version.) Using _SASSERVERNAME as you described worked for me.
HOW TO MAKE AN AUTOEXEC IGNORE A LINE HOW TO
Ha anyone figured out how to do this? Or is the answer to have a 'project' for each server and manually run it after connecting? But then checking it with a different program using %put _user_ doesn't show the global macro variable I tried to create so I assume its not working. In the program that's submitted to the servers when they're made active, I tried using a macro with conditional execution based on the value of _SASSERVERNAME to assign a global macro variable holding the server name. I've tried putting an autoexec.sas in my home directory on each server but EG appears to ignore it. But with EG, the same Tools, Options, SAS Programs, 'submit SAS code when server is connected code' runs for every server.

With my old PC SAS and SAS/Connect it was pretty self-explanatory. These programs contain server-specific options (like sasautos= ) and libname and filename statements. How do I (or can I) make it submit server-specific code (an autoexec.sas) the first time I connect to a server? That is, when I set server serverA as 'active' I want it to automatically run the serverA program and when I set serverB active I want the serverB program to run. But I also have a second remote server that I sometimes connect to and sometimes I submit code to the local 'server'. Upon starting EG I've got it set up to automatically connect to a remote server.

I'm a new EG user and every day I'm finding things that irritate me.
