Using SAS Enterprise Guide with different SAS environments

10

"DEV/TEST/PROD": If that term means something to you, then you are probably among our many customers that use SAS software across different environments. You might have one SAS environment for playing around ("dev" for "development"), another for testing candidate changes ("test"), and yet another for production processes ("prod").

The Connections window in SAS Enterprise Guide

Or, you might work with different environments that are segregated across business units: one for Finance, for example, and another for Human Resources. You can also create different profiles for a single environment, but with different user accounts -- for example, one account with admin privileges, and another as a "mere mortal" end user.

Shortcuts that can make your life easier
Wouldn't it be convenient to have different shortcuts on your desktop so that you can launch SAS Enterprise Guide and point directly to the environment that you want to use? We thought so, and so we added some command-line options in the 4.2 release to make this easy to do.

The command-line option is /profile:"ProfileName", where "ProfileName" is the friendly name you used to label your SAS profile definition. (The quotes are optional unless the profile name contains spaces or special characters, in which case the quotes are necessary.) Here is an example command that you can use in a desktop shortcut to connect to the "prod" environment:

"C:\Program Files\SAS\EnterpriseGuide\4.2\seguide.exe" /profile:prod

Here is a variation with a space in the profile name ("My Server"):

"C:\Program Files\SAS\EnterpriseGuide\4.2\seguide.exe" /profile:"My Server"

And finally, if you want to run with no profile: that is, without connecting to a SAS metadata server at all (using just your local SAS installation), you can run:

"C:\Program Files\SAS\EnterpriseGuide\4.2\seguide.exe" /noprofile

Tags SAS tips
Share

About Author

Chris Hemedinger

Director, SAS User Engagement

+Chris Hemedinger is the Director of SAS User Engagement, which includes our SAS Communities and SAS User Groups. Since 1993, Chris has worked for SAS as an author, a software developer, an R&D manager and a consultant. Inexplicably, Chris is still coasting on the limited fame he earned as an author of SAS For Dummies

10 Comments

  1. Shane Gibson on

    Hi Chris

    Is there anyway to invoke the profile option for an EG project that is scheduled via the EG/Windows schedule function?

    The VBS that is created calls a egp project file directly and then opens it via the windows association, so I can't seem to find a way of inserting the profile parameter.

    Cheers
    Shane

  2. Pingback: Review your metadata profiles using SAS Enterprise Guide automation - The SAS Dummy

  3. I've got a slightly different problem. I'm running EG with a local SAS server (no profiles), and I'd like to change the options that are passed to SAS on startup (I'm gnashing my teeth developing some options with ARM).

    How can I pass the ARM information to SAS at startup from EG?

    Thanks,
    Tom

    • Chris Hemedinger
      Chris Hemedinger on

      Tom, if the options are "startup only" options (config file or SAS command line), then you must add them to the config file associated with the SAS Workspace definition. For example, on a default Windows installation, you'll find a sasv9_usermods.cfg file in ..\SAS\Config\Lev1\SASApp. You can edit that file and put your options there.

      If running with just Local SAS for Windows, you can modify the default SAS command with these instructions.

  4. Hi Christine, is there a option to pass -autoexec "myenv.sas" at command line to get all environment library assigned at startup.

    • Chris Hemedinger
      Chris Hemedinger on

      Not from EG. You need to work with an administrator to assign those from the OS shell or in a config. But you can use the Autoexec Process flow in EG to set per-project options.

      • Chris, I believe in older version of SAS we had EGauto.sas which can be called at SAS invocation.. Is there any alternate approach in newer version 7.1?
        I'm looking to accomplish something like this.. "C:\Program Files\SAS\EnterpriseGuide\7.1\seguide.exe" /profile:prod -autoexec "C:\user\ss\desktop\init.sas"

        So libraries are assigned once per EG session.. Can you let me know how to accomplish this? Which section in config file needs update?

        Thanks for your help!

  5. Hi Chris, is there a option to pass -autoexec "myenv.sas" at command line to get all environment library assigned at startup.

Back to Top