Skip to main content

RUN

Short Description

The job is running.

Detailed Description​

The job is running. On IBM i a job in RUN status is active in the processor or is ready to use it, and it can also be doing synchronous disk I/O that is not reported as a separate status. It is the Db2 for i equivalent of a session that is using CPU.

How to reduce this wait​

Time in RUN is the work that the SQL itself is doing, so tune the statements that have the most RUN time.

  • Look at the SQL Statistics tab for statements with high CPU time, synchronous reads or page faults per execution.
  • Check the execution plan for table scans, temporary indexes created by the optimizer and indexes advised, and create the advised indexes where they make sense.
  • If CPU on the IBM i host is close to 100%, jobs can be in RUN status while waiting for the processor, so check the host CPU utilisation as well.

IBM i docs - ACTIVE_JOB_INFO table function

Search online​

If this article doesn't have the information you need you can try searching online. Remember, you can contribute suggestions to this page.