How to get the list of the jobs in QUE_WAIT or RESWAIT status