Profiling Batch Jobs
You can make a BenchMark profile of a batch job in two ways:
At the end of the job, you can add a task that stops and saves the profile.
The first solution does not require any change in the job definition. However, sometimes a profile needs to be made in Batch Runner, for example when the job is running on UNIX.
You can do this without changing the job definition of the job to be profiled: Create a new, generic job that only start the profiler, starts another batch job, and stops the profiler. Provide this new batch job with an input parameter named 'job name', and add one SQL task with the following four SQL statements:
SELECT 'Profiling job '|| jobname
SELECT jobname "JobName"
Now, when a job needs to be profiled, this generic job can be started with parameter 'jobname', and then the requested job can be profiled.
For more information, refer to USoft BenchMark help, especially: "How to Make a Profile using the Stand-alone Profiler from Within Another Application".