![Start of change](../../delta.gif)
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:
- In the Welcome page, select Monitor your workload, or in the navigation bar at the top of the page, click .
- Select an engine.
- In Object Type, select Job.
- From the Query drop-down list, select All Jobs in plan or another task to monitor jobs.
- Click Run to run the monitoring task.
- From the table containing the list of jobs, select a job and click Edit Job.
![End of change](../../deltaend.gif)