  DCL f$getqui lexical, idle batch queue jobs? 
 The Question is:
 
Is there a simple way within DCL to identify a specified batch job which is
 hung (ie not processing, in LEF status, elapsed time &gt; 1 hour) and delete it
 from the batch queue.
 
 
 The Answer is :
 
  Certainly.  Write some DCL that periodically scans and identifies the
  target batch job(s) in the target queue(s), and specifically the target
  jobs that are in LEF state and has not accumulated more than a small
  amount of CPU time.  (Some small amount of CPU time can be expended
  when the target process returns the queried CPU time information.)
 
  There are examples of tools that use the f$getqui DCL lexical here
  in the Ask The Wizard area.
 
  Existing discussions of the f$getqui lexical include the following
  topics: (813), (1240), (2159), (3951), (4546), (4568), (4903), (5188)
  (5471), (5567), (5651), (5793), (5982), (6315), (6877), (6944), etc.
 
 Answer written or last revised on  23-AUG-2001 
