SASGSUB Syntax: Running a Command in Batch Mode

The following is the complete syntax for submitting a grid job to run a command in batch mode.

Syntax

SASGSUB
-GRIDRUNCMD command common_arguments batch_arguments
<grid_job_arguments>

Required Arguments

-GRIDRUNCMD command

specifies a command that you want to run on 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.

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.

Optional Argument

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.

Example: Submitting a Command in Batch Mode

The following is an example of a SASGSUB batch mode statement used to submit a command to the grid to copy a set of files from the prod directory to the backup directory:
SASGSUB -GRIDRUNCMD "cp /prod/file1.* /backup"