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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 615 views
  • 0 likes
  • 2 in conversation