From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8eac69eab120032a X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-09-16 02:55:00 PST Newsgroups: comp.sys.dec Path: sparky!uunet!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!ryn.mro4.dec.com!salthl.enet.dec.com!mccrohan From: mccrohan@salthl.enet.dec.com () Subject: Re: Requeueing jobs in VMS Message-ID: <1992Sep16.150339.5083@ryn.mro4.dec.com> Sender: news@ryn.mro4.dec.com (USENET News System) Reply-To: mccrohan@salthl.enet.dec.com () Organization: Digital Equipment Corporation References: <00960A92.52366D40@vms.csd.mu.edu> Date: Wed, 16 Sep 1992 15:03:39 GMT >From the VMS HELP: (general command is $SET ENTRY entry#/QUALIFIER1/QUALIFIER2/ETC QuenamSET ENTRY /AFTER /AFTER=time /NOAFTER Requests that the specified job be held until after a specific time. If the specified time has already passed, the job is queued for immediate processing. You can specify either an absolute time or a combination of absolute and delta times. For complete information on specifying time values, see the VMS DCL Concepts Manual. Esample: $SET ENTRY 212/AFTER=TOMORROW $SET ENTRY 212/AFTER=AFTER=20:00 SET ENTRY /HOLD /HOLD /NOHOLD Controls whether the job is to be made available for immediate processing or held for processing later. If you specify the /HOLD qualifier, the job is not released for processing until you enter SET ENTRY/NOHOLD or SET ENTRY/RELEASE. You can use the SET ENTRY command to release a job that was submitted previously with a /HOLD qualifier, or you can place a job on hold so that it will run later. You can use the /NOHOLD qualifier to release jobs that have been held for the following reasons: o A job was submitted with the /HOLD qualifier. o A completed job is being held in a queue that has the /RETAIN qualifier specified. o A user-written symbiont has refused a job. SET ENTRY /REQUEUE /REQUEUE=queue-name[:] Requests that the job be moved from the original queue to the specified queue. ...and many more....... Additionally, using the SYNCHRONIZE command allows a batch job to be synchronized with some other event. SYNCHRONIZE Holds the process issuing the command until the specified job completes execution. Format SYNCHRONIZE [job-name] Additional information available: PARAMETER QUALIFIERS /ENTRY /QUEUE EXAMPLES SYNCHRONIZE EXAMPLES 1. $ SUBMIT/NAME=PREP FORMAT/PARAMETERS=(SORT,PURGE) Job PREP (queue SYS$BATCH, entry 219) started on queue SYS$BATCH $ SUBMIT PHASER Job PHASER (queue SYS$BATCH, entry 223) started on queue SYS$BATCH In this example, the first SUBMIT command submits the command procedure FORMAT.COM for execution and names the job PREP. The second SUBMIT command queues the procedure PHASER.COM. The procedure PHASER.COM contains the following line: $ SYNCHRONIZE PREP When this line is processed, the system verifies whether the job named PREP exists. The procedure PHASER is forced to wait until the job PREP completes execution. 2. $ SUBMIT/NAME=TIMER COMP.COM Job TIMER (queue SYS$BATCH, entry 214) started on queue SYS$BATCH $ SYNCHRONIZE /ENTRY=214 In this example, a batch job named TIMER is submitted. Then the SYNCHRONIZE command is entered interactively. This command places the interactive process in a wait state until entry number 214 (TIMER) completes. You cannot enter subsequent commands from your terminal session until the SYNCHRONIZE command completes and your process is released from the wait state. S Hope this helps... Mike