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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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