Find wait statistics for a job, task, or thread

During the running of a job, task, or thread, conditions arise that cause that process to wait (for example, while the system resolves a lock or hold on a required object).

Start of changeCollection Services can collect data on the cause and duration of the time a process spends waiting. This data is reported in the Collection Services database files QAPMJOBWT and QAPMJOBWTD. End of change

Start of changeAnother tool that shows job wait statistics is Job Watcher. Job Watcher is a component of the iDoctor for iSeries™ software product. Job Watcher returns realtime information about a selected set of jobs, threads and licensed internal program (LIC) tasks. At specified time intervals, Job Watcher samples anywhere from one thread/job to all threads/job. Job Watcher gathers a variety of performance data, including detailed wait statistics for jobs, tasks, and threads.End of change

Start of changeTwo types of wait buckets accumulate wait state data:
Static wait buckets
A set of 16 statistical buckets which accumulate wait state data. Static wait buckets, used by Collection Services, provide a stable view of the wait state data. Data from the static buckets is reported in the QAPMJOBWT file.
Dynamic wait buckets
A set of up to 32 statistical buckets which accumulate wait state data. Initially, dynamic wait buckets are mapped to contain the same data as the static wait buckets. However, you can remap dynamic wait buckets.
End of change
Note: Start of changeTo query the QAPMJOBWTD file, the CCSID of your job must be set to the CCSID of the primary language installed on the system (not to 65 535-binary data.End of change
Related concepts
iDoctor for iSeries
Related information
Performance data files: QAPMJOBWT
Performance data files: QAPMJOBWTD
A jobs life
Work management job attributes