[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

SUBMIT, Queues, and Batch Jobs Retained?

» close window

The Question is:

 
Hi wizard, can you specify in the user authorization when the submitted job
 retains in the queue? I have checked the queue params and there is no retain
 flag:
Batch queue VOIMA$SYS$BATCH, idle, on VOIMA::
  /BASE_PRIORITY=3 /JOB_LIMIT=15 /OWNER=[SYSTEM] /PROTECTION=(S:M,O:D,G:R,W:S)
 
  Entry  Jobname         Username             Status
  -----  -------         --------             ------
    999  CM_VHOUSEK      JUPBATMAN            Retained on completion
         Submitted  8-JAN-2004 05:00:12.00 /KEEP
 /LOG=RL$CTMAGENT_DEVICE:[CTMAGENT.sysout]CM_VHOUSEK.LOG_19030_1; /NOPRINT
         /PRIORITY=100 /RETAIN=ALWAYS
         File: _$1$DGA4395:[RL$CTMDIR.CLN.PROGRAMS]CLN_VOIMA_HOUSEKEEP.COM;2
         Completed  8-JAN-2004 05:01:09.24 on queue VOIMA$SYS$BATCH


The Answer is :

 
  There is no UAF setting which controls job retention.
 
  The answer to the implicit question "why is this entry retained" is
  becase of the declaration of the queue:
 
  /KEEP /LOG=... /NOPRINT  /PRIORITY=100 /RETAIN=ALWAYS
 
  Specifically, because the job itself was submitted with /RETAIN=ALWAYS,
  the queue setting is not relevant.
 
$ HELP SUBMIT/RETAIN
 
SUBMIT
 
  /RETAIN
 
        /RETAIN=option
 
     Specifies the circumstances under which you want your jobs to be
     retained in a queue. When a job is retained in the queue, you can
     issue the SHOW QUEUE command after the job completes to see the
     status of the job. Without job retention, no record of a job is
     left in a queue after a job completes.
 
     Use the following options to specify job retention:
 
     o  ALWAYS--Holds the job in the queue regardless of the job's
        completion status.
 ...
 
 
 
  As for how to create some site-specific code to manage these entries
  for local requirements, 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), (9130), and likely others.
 
  Topics specific to retained jobs include (1240) and (3951).
 

answer written or last revised on ( 12-JAN-2004 )

» close window