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.)?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 1504 views
  • 0 likes
  • 2 in conversation