SASGSUB Syntax: Viewing Job Status

The following is the syntax for using SASGSUB to view the status of a job on a SAS grid. Enter the command on a Windows or UNIX command line.

Syntax

SASGSUB
-GRIDGETSTATUS job-id | ALL
common_arguments batch_arguments

Required Arguments

-GRIDGETSTATUS job-id | ALL

displays the status of the job specified by job-id. If you specify ALL, the status of all jobs for the current user is displayed.

common_arguments

specifies any of the arguments that are common to all uses of the SASGSUB command. Some arguments are required and some are optional. See SASGSUB Syntax: Common Arguments for the syntax for each argument.

batch_arguments

specifies any of the arguments that are common to all SASGSUB commands that run in batch mode. Some arguments are required and some are optional. See SASGSUB Syntax: Batch Options for the syntax for each argument.

Examples

Example 1: Viewing the Status of a Single Job

The following is an example of a SASGSUB statement used to view the status of job 61361 that is running on the grid:
SASGSUB -GRIDGETSTATUS 61361
The output from the command looks like this:
Status of a Single Job
Current Job Information
  Job 61361 (testPgm) is Finished:  Submitted: 06Jan2011:10:28:57, Started: 06Jan2011:10:28:57 on Host d12345, Ended: 06Jan2011:10:28:57

Example 2: Viewing the Status of All Jobs

The following is an example of a SASGSUB statement used to view the status of all jobs running on the grid:
SASGSUB -GRIDGETSTATUS ALL
The output from the command looks like this:
Status of All Jobs
Current Job Information
  Job 1917 (Pgm_01) is Finished:  Submitted: 08May2011:10:28:57, Started: 08May2011:10:28:57 on Host d12345, Ended: 08May2011:10:28:57
  Job 1918 (Pgm_02) is Finished:  Submitted: 08May2011:10:28:57, Started: 08May2011:10:28:57 on Host d12345, Ended: 08May2011:10:28:57
  Job 1919 (Pgm_03) is Finished:  Submitted: 08May2011:10:28:57, Started: 08Ma2011:10:28:57 on Host d12345, Ended: 08May2011:10:28:57
  Job information in directory U:\jobs\GridSub\GridWork\user1\SASGSUB-2011-05-11_13.17.17.327_testPgm is invalid.
  Job 1925 (Pgm_04) is Submitted: Submitted: 08May2011:10:28:57