Desktop productivity for business analysts and programmers

Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

Reply
Regular Contributor
Posts: 194

Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

[ Edited ]
 
Super User
Posts: 4,011

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

Local or remote SAS server?

Regular Contributor
Posts: 194

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

local

SAS Employee
Posts: 313

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

So just as a departure point. It's not EG so much that gets pointed to a particular sasv9.cfg, it's Base SAS (local) that would use that.

 

There are a couple of those in effect, so we would need some additional context.

Regular Contributor
Posts: 194

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

I want to work with a project that uses an alternative Autoexec.bat, i.e,
an alternative evironment than my preferred default. If I were using
sas.exe (using Windows), yes, I could call it on a command line to point to
that particular SASV9.CFG file. I'm looking to find the same way to call
SEGUIDE.EXE. My first guess is this XML config file might be able to
specify the config file for the local sas instance... To be used to run
the project's code.
SAS Employee
Posts: 313

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

Ok, I get you.

 

Forgetting about Base SAS, what settings in E Guide are you looking to have different between the projects ?

Regular Contributor
Posts: 194

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

Of that last question's possible premises, reading between the lines, you're saying "it doesn't work that way".   I found "Autoexec options" at (https://communities.sas.com/t5/General-SAS-Programming/Autoexec-options/td-p/...) . I'm surprised EG doesn't call SAS like SAS/CONNECT called remote servers.  This is making me rethink things.

 

I'm tied also because I work with a community who is still working in SAS Interactive and I'm trying not to change my system to much.  If that makes sense, I use to understand these things better several years ago, I feel.

Community Manager
Posts: 3,448

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

When working with just Local SAS and EG, there is only one SAS command/config that can be registered at a time.  That's stored in a Windows registry key, as described in this topic.  SAS Enterprise Guide launches SAS with a COM call.

 

If you have a SAS Metadata Server and an object spawner, you can define multiple "SAS commands" and place them in Logical SAS Workspace objects.  Then you can choose which SAS to launch from within EG -- there will be multiple options in the Server list.  But that's a lot of work and overhead for just a local configuration.

 

A possible workaround: you could define some options and Autoexec logic based on environment variables.  Then instead of launching EG from its standard shortcut, launch from a BAT (or CMD) file in which you SET the values of these environment variables.  Rework your Autoexec.SAS or default config file to include references to the environment variables with the !ENV notation.  

Regular Contributor
Posts: 194

Re: Can (or How would) someone use SEGuide.exe.config to point EG to an alternate sasv9.cfg?

Posted in reply to ChrisHemedinger

thanks

Ask a Question
Discussion stats
  • 8 replies
  • 290 views
  • 1 like
  • 4 in conversation