jobadd

Note: Always enclose arguments containing spaces in quotes, or the command will not execute successfully.

Example: If the Program Files folder is included in a path statement as an argument, the entire path must be enclosed by quotes.

The jobadd command lets you add a job or job group to the production schedule. You can add a job either by alias or by ID. You can obtain the job occurrence ID or alias by using the listrule command. Unlike the submit command, the job is submitted adhoc. An adhoc job is not dependent on a calendar because a new instance is submitted manually into the schedule. Job groups can specify group parameter values if they are expressed in NAME=VALUE pairs.

SACmd jobadd -a alias| -i ID [-p params]

jobadd -options

Option

Description

-a alias

Specifies the alias name of the job or job group to add. Either this option or -i ID is required.

-i ID

Specifies the ID of the job or job group to add. Either this option or -a alias is required.

-p params

Specifies override parameters. For group parameters, separate NAME=VALUE pairs with commas.

Examples

  • This example adds a job with the alias name invent2:

    Example: SACmd jobadd -a invent2

  • This example adds a job with the job ID 10000:

    Example: SACmd jobadd -i 10000

  • This example adds a job group with the job ID 4192 and specifies values for the variables, QUE, APPL and QUESUB:

    Note: The value pairs are separated by commas.

    Example: SACmd jobadd -i 4192 -p “QUE=Q123, APPL=A09, QUESUB=QS2”