select APPLICATION_HANDLE FROM TABLE(MON_GET_UNIT_OF_WORK(NULL,-1)) where UOW_START_TIME < CURRENT TIMESTAMP - 12 HOURS and NUM_LOCKS_HELD > 0 and workload_occurrence_state = 'UOWWAIT'
select a.APPLICATION_HANDLE
,timestampdiff ( 4, varchar(timestamp(current timestamp) - timestamp(a.UOW_START_TIME)) ) as duration_minutes
--,substr(b.STMT_TEXT,1,200) as stmt_text
FROM TABLE(MON_GET_UNIT_OF_WORK(NULL,-1)) a
left join sysibmadm.LONG_RUNNING_SQL AS b on (a.APPLICATION_HANDLE = b.agent_id)
where a.UOW_START_TIME < CURRENT TIMESTAMP - 4 HOURS and a.NUM_LOCKS_HELD > 0 and a.workload_occurrence_state = 'UOWWAIT'