Architecting, installing and maintaining your SAS environment

Scheduling Tasks in SAS basic

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Scheduling Tasks in SAS basic

I am the administrator of a single-server deployment of Base SAS. We are currently using Base SAS 9.4 (TS1M2 DBCS3170).

 

Disclaimer: I do absolutely no work in SAS itself. My responsiblity is administering the server where SAS is installed. My interaction with SAS consists of adding users to a group so that they can access the server, and installing the new license files when they are available.I performed the initial installation of SAS myself, with assistance from their support team.

 

My users access SAS through the web console, using SAS Studio Basic. One user has requested the ability to schedule SAS jobs to run at specific times, rather than running the jobs manually.

 

I have done some research into this, and found that there is an option for SAS Management Console, and a "Schedule Manager" plug-in that can be used.

 

Unfortunately, I am unable to find any information on how to actually deploy this in my environment. I have managed to install the Management Console on a system, but when I try to connect to the server, I am told "The client has connected to a SAS Workspace Server (v1.0) when it is intended to connect to a SAS Metadata Server". I have an image of this error attached (see image 'SAS Error.png').

 

Can someone assist and tell me if it is even possible to schedule jobs using Base SAS, and, if so, provide instructions on how I would go about getting that set up?

 

I apologize if this is in the wrong location, and if any additional info is needed, please let me know.

 

Thanks in advance.


SAS Error.PNG

Accepted Solutions
Solution
‎05-02-2017 08:09 AM
Super User
Posts: 3,250

Re: Scheduling Tasks in SAS basic

Posted in reply to jjeanveau

SAS Management Console only works with metadata-based SAS servers. I am assuming that you don't have a SAS metadata server running on your physical server - is that correct? What operating system is your server? If it is Windows you can use the Windows scheduler to schedule SAS jobs. If it is Unix you can use cron.

View solution in original post


All Replies
Solution
‎05-02-2017 08:09 AM
Super User
Posts: 3,250

Re: Scheduling Tasks in SAS basic

Posted in reply to jjeanveau

SAS Management Console only works with metadata-based SAS servers. I am assuming that you don't have a SAS metadata server running on your physical server - is that correct? What operating system is your server? If it is Windows you can use the Windows scheduler to schedule SAS jobs. If it is Unix you can use cron.

Trusted Advisor
Posts: 1,307

Re: Scheduling Tasks in SAS basic

Posted in reply to jjeanveau

Hello @jjeanveau,

 

in general, I can subscribe to what @SASKiwi already indicated. This link probably can help you: http://blogs.sas.com/content/sgf/2013/08/14/four-ways-to-schedule-sas-tasks/

or this other one, as general information https://communities.sas.com/t5/SAS-Studio/Schedule-SAS-Studio-flows/td-p/305046

 

If you have only SAS Base, and no services, such as SAS Metadata, the SAS Management Console won't be able to help you at all.

 

But, besides the taking the sas code and creating a script (sh or bat) to launch SAS giving the sas file as parameter, and scheduling it in cron, at or Windows Task Scheduler (or your prefered 3rd party scheduled), you might want to share this information with your users:

 

http://support.sas.com/documentation/cdl/en/webeditorug/68828/HTML/default/viewer.htm#n0t5b6xetubfnz...

 

Hope it helps a bit.

 

Best,

Juan

 

 

New Contributor
Posts: 2

Re: Scheduling Tasks in SAS basic

Posted in reply to jjeanveau

Thanks for the responses.

 

We do not have a SAS Metadata Server running on the physical server. The server is Windows Server 2012 R2.

 

JuanS_OCS, I will pass that information along ot my users to see if that helps them at all.

 

If the only way for us to have them schedule jobs is by using the Windows Task Scheduler, that is likely the way we will have to go.

Super User
Posts: 3,250

Re: Scheduling Tasks in SAS basic

Posted in reply to jjeanveau

You can of course also use third-party schedulers as well. If your company has a preferred scheduler then I would go with that.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 216 views
  • 0 likes
  • 3 in conversation