SASGSUB Syntax: Running a Command in Interactive Mode

The following is the complete syntax for submitting a grid job to run a command interactively. If you terminate SASGSUB in interactive mode, you also terminate the SAS session running in the grid.

Syntax

SASGSUB
-GRIDRUNCMDINT command common_arguments
<-GRIDWAITTIMEOUT>timeout-value
<grid_job_arguments>

Required Arguments

-GRIDRUNCMDINT command

specifies that an arbitrary command is run on the grid in interactive mode. Standard output and standard error is displayed on the user’s machine. Standard input is redirected from the client to the grid.

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.

Optional Arguments

-GRIDWAITTIMEOUT timeout-value

specifies that the SAS Grid Manager Client Utility waits until either the job has completed running (either successfully or with an error) or timeout-value (in seconds) is reached. If you use this option with -GRIDWAIT or -GRIDWAITRESULTS, it enables you to specify how long to wait for results.

grid_job_arguments

specifies any of the arguments valid when submitting jobs or commands to the grid. See SASGSUB Syntax: Grid Job Arguments for the syntax for each of these arguments.