SEMW
Short Description
The job is waiting for a semaphore.
Detailed Description​
The job is waiting for a semaphore, which is used to control access to a shared resource by several jobs or threads.
How to reduce this wait​
Semaphore waits come from the application or a system component rather than from the SQL. If there is a lot of SEMW time, display the call stack of the waiting jobs with WRKJOB OPTION(*CALLSTACK) to find the program that is waiting and the resource it is waiting for.
Additional Links​
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.