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.

The Boston Area SAS Users Group is hosting free webinars!
Next up: Joe Madden & Joseph Henry present Putting Power into the Hands of the Programmer with SAS Viya Workbench on Wednesday Nov 6.
Register now at https://www.basug.org/events.
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.

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 837 views
  • 2 likes
  • 4 in conversation