Desktop productivity for business analysts and programmers

How to run a program in EG5.1 without connecting to a server

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

How to run a program in EG5.1 without connecting to a server

I have entered a sample program in EG program editor and select the test and run. I got a message saying that 'Unable to run this item. The server is not defined in the current repository'. I don't have any servers to connect. Is it possible to run a program in EG without connecting to a server? Thanks for your time and help.


Accepted Solutions
Solution
5m ago
Community Manager
Posts: 2,703

Re: How to run a program in EG5.1 without connecting to a server

[ Edited ]

A quick method to see if EG can find a local installed SAS:

 

Select Help->About SAS Enterprise Guide.  In the About window, click Configuration Details.  You'll see a window with lots of details, including this:

localsas.png

If the "SAS System version" reports as "None" -- then EG cannot detect a local SAS installation.

 

If you know that you have a local SAS install, you might need to ensure it's registered for use.  Or you might need to configure your metadata profile connection to allow "Local" to show up in your list of servers.

 

See all of the details in this article: Using SAS Enterprise Guide with your local SAS installation.

 

Chris

View solution in original post


All Replies
Grand Advisor
Posts: 17,438

Re: How to run a program in EG5.1 without connecting to a server

As long as you have a local set up yes. If you click the little arrow besides Run it should say run on local. Otherwise you have a set up problem somewhere.


Can your do anything else in EG?

Occasional Contributor
Posts: 10

Re: How to run a program in EG5.1 without connecting to a server

Thanks for quick reply. I don't see 'Run on Local' in Run menu. I can see 'Run' and 'Run Selection' (Disable mode). I can perform other operations like create project, programs, import data etc. I am very new to SAS. Do i need to make any configuration changes to set up 'Local'? Thank You.

Super User
Posts: 1,230

Re: How to run a program in EG5.1 without connecting to a server

EG needs to connect to SAS somewhere to run the SAS code EG generates. EG by itself is not SAS. You either connect to a SAS server or SAS locally (SAS installed on the same machine as EG). It seems that you may need to install SAS.

Regular Contributor
Posts: 220

Re: How to run a program in EG5.1 without connecting to a server

Hey J - you can write program - right click on it and choose option 'run locally' from server selection option or direct option...

this way you can check if its running or not - if not describe error message, someone can explain

Super Contributor
Posts: 307

Re: How to run a program in EG5.1 without connecting to a server

At the very least, EG requires one server to run programs or tasks. The "server" can be local, but whether a local server exists and associated configuration settings may be controlled by your SAS Administrator.

The first thing you need to check is whether a local server has been defined. On the Menu Bar, select View --> Server List. (Note: this is not the only way to access the server list).

In the Server List pane (by default, this pane will appear on the lower left side of EG), expand the server list by clicking on the "+". This should allow you to see a server called "Local". If you can see the server called "Local", left-click on it and SAS will try to connect to it by default. Wait a few seconds while SAS does it's magic. Eventually, SAS/EG will connect (or not).

If you cannot see a "Local" server or if EG fails to connect to the Local server, then you have a problem.

If you have a successful connection to a "Local" server, then you need to make sure that your code is set to run on the Local server.

In the Process Flow window, RIGHT click on your code icon and select Select Server --> Local. (You can also do this in the Project Tree window). You will probably have to do this for each code object if you have more than one. Then, try running your process flow again.

Occasional Contributor
Posts: 10

Re: How to run a program in EG5.1 without connecting to a server

I don't see any 'Local' under Servers in EG. Do i need to install SAS separately for local server?

Super Contributor
Posts: 307

Re: How to run a program in EG5.1 without connecting to a server

During a typical EG install, SAS should automatically install any SAS software it needs. EG is basically a client/application interface, with the SAS engine doing the heavy lifting behind the scenes.

Have you set up a connection profile?

* In SAS Enterprise Guide, select Tools --> SAS Enterprise Guide Explorer --> File --> Manage Profiles --> Profiles --> Add

* create a local server named Local and check Local (under Machine)

Occasional Contributor
Posts: 10

Re: How to run a program in EG5.1 without connecting to a server

I have tried creating a profile as you recommended. I am not sure which credentials that i need to specify. I have selected IWA, but connection is not working. Are there any default credentials for SAS Metadata Repository?

Respected Advisor
Posts: 3,840

Re: How to run a program in EG5.1 without connecting to a server

As others already said SAS EG is the client (client tier). To execute SAS programs you need to connect to a SAS Server (compute tier). To be able to create such a connection you need to authenticate yourself on the SAS Metadata server (mid tier).

In order to authenticate yourself you need a SAS Metadata identity defined. This paper should give you some insights of how this works: http://support.sas.com/resources/papers/proceedings13/420-2013.pdf

IWA must be configured in your environment in order to use it. From what you've told us so far I doubt that this is the case in your environment.


If you have a local installation of SAS then you can also use EG without any metadata server and you don't need to define a profile at all.

Capture.PNG

This will then let you use your locally installed SAS without the need for any further configuration.

Capture.PNG

Super Contributor
Posts: 307

Re: How to run a program in EG5.1 without connecting to a server

Don't select IWA unless you are configured for it, as Patrick pointed out. Don't set a login or pw. Once you've added the Local Server, you should be able to see it in your server list.

Valued Guide
Posts: 3,206

Re: How to run a program in EG5.1 without connecting to a server

@Fugue, It would make sense JayG would tell explain:

a/ his role, b/ what is expected from him, c/ what information he has, d/ what he has running  e/ wich contacts fo support he has etc.etc.

We can give a lot of advices, but as seen the questions with responses there is clearly some misunderstanding.  
 

---->-- ja karman --<-----
Super Contributor
Posts: 307

Re: How to run a program in EG5.1 without connecting to a server

I agree, Jaap. I was trying to keep it simple as I didn't want to overload JayG. SAS/EG is not the most user-friendly product to get up and running, as you know.

And as Patrick pointed out, JayG should be able to set up a Local server without a connection profile. But, setting up a connection profile to Local without any credentials should accomplish that.

If JayG cannot create and connect to a Local server, then I think we should explore all those questions you raise.

Occasional Contributor
Posts: 10

Re: How to run a program in EG5.1 without connecting to a server

Thank you all for your wonderful replies.

As some of you recommended, i could not create a 'Local' connection profile. When i click on new connection, i can enter name as 'Local' and select 'localhost'. The next step is to enter credentials or IWA. If i don't enter credentials or don't select IWA, 'Save' button is disabled. So, i could not save Local profile.

When i open EG, there is a profile in connections box with name '<do not use a profile>'. I can select that, but could not set active. When i close the Connections box, i am seeing 'No profile selected' in bottom right corner. I could not run any program in EG with this set up.

Super Contributor
Posts: 307

Re: How to run a program in EG5.1 without connecting to a server

Perhaps one of the members with more experience in 5.1 can help you with this? I'm running 4.3, and the setup is a little different.

As per Jaap's question(s), did you install EG yourself or did your SAS Administrator install it? What version of EG are you running (Help --> About Enterprise Guide)?

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 32 replies
  • 11285 views
  • 9 likes
  • 12 in conversation