BookmarkSubscribeRSS Feed
Doc_Duke
Rhodochrosite | Level 12
Chris@SAS pointed us to a useful document for running an autoexec for each person using EGuide (though it may be workstation). "For those options that can be set in an autoexec (options you can specify with an OPTIONS statement), you can use this tip:

http://www.sascommunity.org/wiki/Tips:User_Specific_Autoexecs_in_Enterprise_Guide "

What I need is the ability to execute the commands for each EGuide project (.egp file) so that project specific code is relegated to just that project, e.g. the assignment of LIBNAMEs. As a consulting statistician, I might work on 40-50 projects during a year and accumulating all of those LIBNAMEs in one autoexec is unwieldy, at best.

In batch SAS, the SAS system will search for the autoexec.sas file in the current working directory, the users home directory, and the SAS invocation directory, which allows a great deal of specificity to the customization. I'm looking for something similar to that.

I haven't found that in EGuide 4.2. Have I missed it? Any ideas for a work-around?

Doc Muhlbaier
Duke
1 REPLY 1
RichardH_sas
SAS Employee
I experience similar frustrations... I don't believe there's a good way to do this in EG 4.2. I currently put a piece of code at the top of my process flows with libnames etc and rename it to RUN ME FIRST. I still forget to run it on a regular basis though.

The good news is I saw a preview of EG 4.3 this week, and it will support what you're describing. Basically, in EG 4.3 if you name a process flow Autoexec, it will automatically run each time a process flow is opened. Very cool! There's a bunch of other impressive stuff coming with EG 4.3, especially for the SAS coders.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1409 views
  • 0 likes
  • 2 in conversation