BookmarkSubscribeRSS Feed
jamal01
Fluorite | Level 6

Hello,

 

I am trying to run SAS code in the background. By "background", I am referring to when my VM is closed as well as my SAS remote server.

 

Is it possible?

3 REPLIES 3
SASKiwi
PROC Star

Not sure what you mean by "run in background". You can run the SAS code you have developed in EG, outside of EG by running the program as a SAS batch job. An easy way to do this is to use SAS Management Console. It contains a tool called Schedule Manager which enables you to run SAS batch jobs on the remote SAS App server on-demand or scheduled to run at a particular time.

 

If you are running EG on a VM, then having your SAS program scheduled via SMC will cause it to run at the required time without the need for a VM at all as it is handled by the SAS server. Please note EG projects can't be run this way, unless you export the project to SAS programs first. EG projects themselves can only be run or scheduled on the computer EG is installed on.  

Quentin
Super User

I don't think so.  Studio has a background submit, see e.g. https://support.sas.com/resources/papers/proceedings17/SAS0417-2017.pdf.  But I don't think EG has something comparable. Studio is the future, so definitely worth a look.

Sajid01
Meteorite | Level 14

What you mean by closed and background is not clear. 
However a SAS job (base sas code OR EG project )   can be run in batch mode when the SAS Server/services are stopped, the job does not require metadata access and the OS is running on the server either physical or VM.
Do discuss your issue with peers in your organization  including SAS Administrators.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3 replies
  • 1444 views
  • 2 likes
  • 4 in conversation