altjob

Modify a job in the plan before it runs.

You must have submit access to the job.

Syntax

{altjob | aj} jobselect
     [;streamlogon|logon=new_logon]
     [;docommand="new_command"|;script="new_script"]
     [;noask]

Arguments

jobselect
See Selecting jobs in commands. Wild cards are supported.
streamlogon|logon=new_logon
Specifies that the job must run under a new user name in place of the original user name.
docommand="new_command"
Specifies the new command that the job must run in place of the original command. This argument is mutually exclusive with the script argument.
script="new_script"
Specifies the new script that the job must run in place of the original script. This argument is mutually exclusive with the docommand argument.
noask
Specifies not to prompt for confirmation before taking action on each qualifying job.

Comments

With altjob conman command, you can make changes to the job definition after it has already been submitted into the plan, while maintaining the original definition in the database. This can also be done from either the Job Stream Graphical View or the job monitoring view of the Dynamic Workload Console.
Note: When you edit the definition of a job in the plan that contains variables, the job runs and completes, but is unable to resolve the variables with their value.

For information about jobinfo, see jobinfo.

See also

From the Dynamic Workload Console you can perform the same task as follows:
  1. In the Welcome page, select Monitor your workload, or in the navigation bar at the top of the page, click Monitoring & Reporting > Workload Monitoring > Monitor Workload.
  2. Select an engine.
  3. In Object Type, select Job.
  4. From the Query drop-down list, select All Jobs in plan or another task to monitor jobs.
  5. Click Run to run the monitoring task.
  6. From the table containing the list of jobs, select a job and click Edit Job.