Robert asks about jobs remaining in a WAIT state to which Jan and Stefano reply about the jobfence. There is another possibility: If the output spooler isn't accepting output, then the job will also wait. Look at the STARTSPOOL and OPENQ commands.