BookmarkSubscribeRSS Feed
vfarmak
Quartz | Level 8

Greeting everyone,

 

I have a job scheduled via Windows Task Scheduler and I need to write a script which checks whether a specific job in SAS Server is running.

After a search in SAS documentation, I found out that a command exists that can display all the jobs running in a specific machine.

 

So I navigated via the command prompt to the SAS executables area in SAS Server and typed the below command:

SASGSUB -GRIDGETSTATUS ALL

I received the following response:

D:\Program Files\SASHome\SASFoundation\9.4>SASGSUB -GRIDGETSTATUS ALL

SAS Grid Manager Client Utility Version 9.46 (build date: Mar 27 2019)
Copyright (C) 2009-2017, SAS Institute Inc., Cary, NC, USA. All Rights Reserved

 ERROR: The SAS Application Server name is missing or invalid.
 ERROR: The GRIDWORK shared filesystem location is not specified or specifies an invalid location.

D:\Program Files\SASHome\SASFoundation\9.4>

Am i missing something? I also tried to type the command SASGSUB /? anticipating that instructions would appear on screen, but nothing happened.

Do you have any idea on this?

 

Thank you in advance.

 

1 REPLY 1
SASKiwi
PROC Star

Here is a link to the documentation for SASGSUB

 

The GRIDWORK option is required when using this command.