/sys$common/syshlp/helplib.hlb SYNCHRONIZE, Examples *Conan The Librarian (sorry for the slow response - running on an old VAX) |
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 in the default queue SYS$BATCH. 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. 3.$ SUBMIT/NAME=TIMER COMP.COM/QUEUE=BUILD_QUEUE $ SYNCHRONIZE/QUEUE=BUILD_QUEUE TIMER The batch job name TIMER is submitted to the queue BUILD_QUEUE in this example. Then the SYNCHRONIZE command is entered interactively. Because the job named TIMER is not in the default queue SYS$BATCH, the SYNCHRONIZE command includes the /QUEUE qualifier to specify the queue in which the job is located.
|