BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JMS
Obsidian | Level 7 JMS
Obsidian | Level 7

I'm new to EG and have the following question: I have a windows PC with SAS EG and no local SAS.

And I have a linux machine with SAS 9.4.

Is it possible to use SAS EG as a client to the remote SAS on the linux machine?

How can I do that connection?

 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

@JMS  - EG 8.2 has the option to avoid using  a SAS metadata server and directly logon to a SAS Workspace server. I suspect this is the functionality you need.

View solution in original post

31 REPLIES 31
AhmedAl_Attar
Ammonite | Level 13

Typically,

EG (Client App) would connect to Server Side SAS via SAS Metadata Server instance running of a Server.

If you and your Organization don't have SAS Metadata Server licensed, then you can connect via SAS/CONNECT if that module is licensed on the Server, and you have a SAS Connect Spawner instance running on the Linux Server.

 

Hope this helps,

Ahmed

 

JMS
Obsidian | Level 7 JMS
Obsidian | Level 7

Ahmed I have no spawner running. I could start it but I have not root rights and I'm not sure if I'm allowed to start programs listening on a port. I would prefer  to start SAS by connecting with ssh.

If it works with the spawner, what is the next step? Specify target ip&port in EG?

What if it is not possible to use a spawner, will it work with ssh?

 

 

AhmedAl_Attar
Ammonite | Level 13

@JMS 

Couple of things to keep in mind

  • As far as I know, ssh will not work!
  • Only SAS/CONNECT Spawner and/or SAS Object Spawner are your options to connect to Remote SAS server in Enterprise Guide.

One other alternative, which depends on your Linux SAS Installation, Check if your organization has SAS Studio Basic installed. This would be your best choice.

 

Ahmed   

 

 

AhmedAl_Attar
Ammonite | Level 13

@JMS 

If and when you get the SAS/connect spawner running, then in EG you would do something like this in a program entry

%let server = &p_linuxSrvr 7541;  *<---- Replace the Port (7541) if different value being used by the Connect spawner;
options comamid=tcp;
signon server user="&p_user" password="&p_PASSWORD";

LIBNAME r_work slibref=work server=server;

Rsubmit;
   /* SAS statement(s) */
EndRsubmit;

/* When you are done */
signoff;

 You'll need to replace &p_xxxx place holder variables with your actual values.

 

Hope this helps,

Ahmed

JMS
Obsidian | Level 7 JMS
Obsidian | Level 7

Ahmed, I think your program only works if there is a local SAS, which I don't have.

 

AhmedAl_Attar
Ammonite | Level 13

In this case, it looks like your only option is using connection profile from within EG, similar to what @Patrick had illustrated with his attached screenshot.

You'll need to contact your SAS Administrator and

  • Request to be added/Registered in the SAS Metadata Server
  • Request to be setup with the required authorizations to Folders, Data, Apps, and App Servers within the Metadata Server
  • Get the connection details (Server Name, Port)

Ahmed

Patrick
Opal | Level 21

SAS EG is a client. You can use SAS installed locally as your server but normally SAS is installed on a remote machine. 

The SAS Metadata server is part of the foundation package and you will always have it licensed. And it will always be up and running on a Server instance. That's what you need to connect to SAS even if using SAS/Connect (which allows to connect SAS/Servers not Client/Server).

You just need to be set-up on the SAS Server (SAS Metadata identity and OS account) and then as a one time setup in your EG client add the connection details (SAS Metadata Server name and port, user and credentials).

 

Under Tools/Connection

Patrick_0-1593026347210.png

 

 

 

AhmedAl_Attar
Ammonite | Level 13
Hi Patrick,
Minor correction regarding your statement
"The SAS Metadata server is part of the foundation package and you will always have it licensed. And it will always be up and running on a Server instance. That's what you need to connect to SAS even if using SAS/Connect (which allows to connect SAS/Servers not Client/Server)."

That might be true for your software bundle, but it is not true at the organization I work for. My team is responsible for Installing and Configuring SAS software on Linux & Windows Servers, and the SAS Foundation bundle we install does not contain Metadata Server component!
SAS Metadata Server is part of the SAS® 9.x Intelligence Platform, rather than SAS Foundation. I think it's all depends on how the SAS software bundle and license were contracted/forged between SAS Institute and the customer.

Something to keep in mind, thanks,
Ahmed
SASKiwi
PROC Star

@AhmedAl_Attar - AFAIK, it is the customer's choice to "metadata server-enable" SAS or not. SAS's product bundles don't explicitly specify this one way or the other although this option is really only available for Foundation SAS. Most non-Foundation SAS products require a metadata server.  

JMS
Obsidian | Level 7 JMS
Obsidian | Level 7

I started the spawner with "cntspawn -service 9999 -cleartext -debug".

In EG, I defined a server pointing to the spawner at port 9999. When I log in from EG, it does not work. The spawner logs the login request, but brings strange errors like "connection reset by peer".

 

AhmedAl_Attar
Ammonite | Level 13

@JMS 

As it was mentioned before, without local SAS instance, your EG can only connect via SAS Metadata server. Getting the Spawner started is not enough.

 

Check these two, somewhat dated, papers to give you a good understanding on what's we have been trying to elaborate about the SAS Intelligence Platform. 

https://support.sas.com/resources/papers/proceedings11/363-2011.pdf

https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/051-2008.pdf 

 

Hope this helps,

Ahmed

JMS
Obsidian | Level 7 JMS
Obsidian | Level 7

 


@AhmedAl_Attar wrote:
Here is yet another paper
https://support.sas.com/resources/papers/proceedings13/406-2013.pdf

 

Thank you Ahmed, this one is very good!

 

SASKiwi
PROC Star

@JMS  - EG 8.2 has the option to avoid using  a SAS metadata server and directly logon to a SAS Workspace server. I suspect this is the functionality you need.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 31 replies
  • 5320 views
  • 4 likes
  • 4 in conversation