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

I was trying to connect local client to SAS remote server. But it was always failed.

 

I can connect the server through SAS EG. The connection confidential is connect. But when I use these confidentials to connect through SAS Foundation. It failed.

 

In order to connect the server, I run code as blow:

 

 

 

options metaserver="pdccjd010"
metaport=8561
metauser="myusername in EG"
metapass="mypassword in EG";
signon serverv="SASApp";

It returned the information of the server, like

Server=    SASApp - Connect Server
Remote Session ID = local
ServerComponent ID = ********
Remote Host = pdccjd013.site
...........
Notify = No

Then when I executed 

 

signon server="SASApp"   or 
signon server="SASApp - Connect Server"

It returned the error message:

 

 

ERROR: No logins found.
Retrieving login information based on AuthenticationDomain from the SAS Metadata Server failed.
Unable to retrieve the SAS/CONNECT server definition "SASApp".
Remote signon to SASApp conceled.

Is there any experts can help me to find how to pass this failure. I am not sure the problem is because of my connection code, or there are any restrictions to connect to the server. 

 

Thanks for anyone would give help !!!

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Eric_Chu
Fluorite | Level 6

Thanks for your patient reply. 

I tried again recently. Unfortunately it still didn't work. However, I found an expert have already talked about this issue in 2012. He wrote an EG plug-in to solve this problem. 

 

He talked about this story in this blog below. I hope it is also helpful for you. 

http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/

 

Thanks again for your help. 

 

 

View solution in original post

8 REPLIES 8
LinusH
Tourmaline | Level 20

Are you sure that a SAS/CONNECT server and Connect spawner is defined in metadata?

And you have the necessary rights to access/connect to it?

Also, verify that you have SAS/CONNECT licensed on both local PC and remote server.

Data never sleeps
Eric_Chu
Fluorite | Level 6

Thanks for your replys. Smiley Happy

 

1. Are you sure that a SAS/CONNECT server and Connect spawner is defined in metadata?

I am not sure whether the Connect spawner is defined in metadata. I can connect the server through EG. Does it mean the spawner is defined?

 

2. And you have the necessary rights to access/connect to it?

I am not sure. How can I verify the rights to access?

 

3. Also, verify that you have SAS/CONNECT licensed on both local PC and remote server.

Yes. My licenses is not expired on both local PC and remote server. 

SASKiwi
PROC Star

The question I have is why do you want to signon to remote SAS from local SAS when you can use EG to connect to both your local and remote SAS server through the EG connection profile?

 

Also it looks like your first signon was successful. What happens if you then run a test RSUBMIT:

 

rsubmit;

proc options; run;

endrsubmit;
Eric_Chu
Fluorite | Level 6

Thanks for your replys Smiley Happy

 

Part my job is downloading data table from server to my local client. This job is regularly. I did it manually in EG with a menu way which is not very convient. Now I want to finished it automatically in a coding way. That is why I am tring to connect the server in SAS foundation. If it can finish my job in EG automatically, that is also very good. After all, EG has a more convenient interface than SAS foundation (Smiley Very Happy). 

 

In the end, I tested rsubmit. It returned the error message is :

 

 

Invalid or unspecified remote session ID. Set OPTIONS REMOTE=session_id.
Remote submit to UNKNOWN canceled.

Thanks again for your replys! Have a good day!

 

SASKiwi
PROC Star

Your log suggests that your remote session ID is called local.

 

Try:

 

rsubmit local;

proc options;
run;

endrsubmit;

Remember that the above code should be run on your PC Foundation SAS immediately after the SIGNON statements.

Eric_Chu
Fluorite | Level 6

Thanks for your patient reply. 

I tried again recently. Unfortunately it still didn't work. However, I found an expert have already talked about this issue in 2012. He wrote an EG plug-in to solve this problem. 

 

He talked about this story in this blog below. I hope it is also helpful for you. 

http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/

 

Thanks again for your help. 

 

 

SASKiwi
PROC Star

Cool. The only restriction with this is it runs as an EG task only so you can't do it in code.

Eric_Chu
Fluorite | Level 6

Yep. It is already very convenient for me. Smiley LOL

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 10743 views
  • 2 likes
  • 3 in conversation