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

Hello,

Currently I am automating the launch of my SEG projects via powershell.

It works except when SASApp takes a long time to connect, so I wanted to know if anyone would be able to connect or activate the SASApp server via SAS code instead of double clicking on it.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Depends on your needs. If you just need programs to run at a certain time, use cron. If you have more specific needs, and your organisation already has IT-wide scheduling deployed, use that. Also take a look at scheduling from the SAS Management Console, if you have a BI Server setup.

View solution in original post

6 REPLIES 6
Kurt_Bremser
Super User

As soon as you are able to run SAS code, the connection to the workspace server is already established; if no connection is present, you can't run SAS code anyway.

 

When getting a workspace server session from the object spawner is unreliable, you need to fix that first.

 

This is one of the many reasons why automating processes from the desktop is a sub-optimal solution. It is much better to turn your projects into SAS code that can be run  in batch mode on the server, and use the server's scheduling mechanisms.

isek
Obsidian | Level 7

Hello KurtBremser,

 

What do you propose as server scheduling mechanisms?

 

This is one of the many reasons why automating processes from the desktop is a sub-optimal solution. It is much better to turn your projects into SAS code that can be run in batch mode on the server, and use the server's scheduling mechanisms.

 

 

Thank you

Kurt_Bremser
Super User

Depends on your needs. If you just need programs to run at a certain time, use cron. If you have more specific needs, and your organisation already has IT-wide scheduling deployed, use that. Also take a look at scheduling from the SAS Management Console, if you have a BI Server setup.

isek
Obsidian | Level 7

Hello KurtBremser,

 

Thank you for your suggestions, I will dig the cron solution.

 

 

SASKiwi
PROC Star

Check with the IT/SAS administrators in your organisation to find out what scheduling tools are used already.

isek
Obsidian | Level 7

Hello SASKiwi,

 

I try to see with computers but in large structures it's quite complicated.

 

Thank you for your answer.

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
  • 6 replies
  • 3396 views
  • 3 likes
  • 3 in conversation