BookmarkSubscribeRSS Feed
ErosGuedes
Calcite | Level 5

Estou começando agora no SAS, tenho um robô em python que faz uma cópia de um arquivo para o servidor SAS. 

Eu consigo fazer a conexão via scp, e faço a cópia isso está ok. MAs eu queria que via python mandar um submit para executar uma projeto SAS no servidor, mas não estou conseguindo fazer a conexão.

O Servidor usa o SAS Guide, minha máquina tem o python 3.8.

Eu li muitas coisas, mas não entendi bem o que eu preciso fazer para conseguir fazer a conexão.

Será que alguém consegue me explicar como criar essa conexão?

1 REPLY 1
snoopy369
Barite | Level 11

@ErosGuedes wrote:

I'm starting now in SAS, I have a python robot that makes a copy of a file to the SAS server. I can make the connection via scp, and I make the copy this is ok.

I wanted via python to send a submit to run a SAS project on the server, but I'm not managing to make the connection. The Server uses SAS Guide, my machine has python 3.8.

I've read a lot of things, but I don't quite understand what I need to do to get the connection. Can anyone explain to me how to create this connection?

 


(Translated via Babelfish)

 

Are you using SASPy to connect to SAS 9, or are you using Viya?  

 

SASPy has good documentation here: https://sassoftware.github.io/saspy/  

 

Viya is a bit different, but for the most part easier, you can look at the documentation here: https://blogs.sas.com/content/sgf/2020/04/15/getting-started-with-python-integration-to-sas-viya-par... 

 

If this doesn't help, I recommend posting some more information - what kind of connection are you making? What library are you using?  How do you log in to the SAS server (username/password, IOM, SSH, etc.)? What kind of server is it (linux/windows/etc.)?  What kind of machine are you running Python on (linux/windows/etc.)?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1009 views
  • 0 likes
  • 2 in conversation