Deploy the job as a
stored process. You can deploy an existing job as a version 1.0 or
version 2.0 stored process.
For more information about the differences between the
versions, see Working with Stored Processes.
Note that when you deploy
a job as a stored process, the generated code for the stored process
always begins with these lines:
*ProcessBody;
%stpbegin;
If you want to specify
code that should come before these two lines when a job is deployed
as a stored process, then set the
Stored process pre-process
code option for the job. To access this option, display
the properties window for the job and select
Options
General section. Specify the
desired code in the
Stored process pre-process code option.