This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The OnSuccessAction property controls the behavior of a SQL Server Agent job when the referenced step succeeds.
Continues execution at the next sequential step.
Continues execution at the next identified step.
Stops job execution, reporting failure.
Stops job execution, reporting success.
Job step logic is unassigned for the referenced job step.
On success of a job step, SQL Server Agent can stop the job (reporting success or failure), or if the job has more than a single step, it can attempt to execute the next step or another step in the job.
When using SQLDMOJobStepAction_/GotoStep to direct execution to a specific step, set the OnSuccessStep property to identify the job step executed on success.