/sys$common/syshlp/helplib.hlb WAIT, Example *Conan The Librarian (sorry for the slow response - running on an old VAX) |
$ LOOP: $ RUN KUDOS $ WAIT 00:10 $ GOTO LOOP In this example, the command procedure executes the program image KUDOS. After the RUN command executes the program, the WAIT command delays execution of the GOTO command for 10 minutes. Note that 00 is specified for the number of hours, because the time specification cannot begin with a colon. After 10 minutes, the GOTO command executes, and the procedure transfers control to the label LOOP and executes the program KUDOS again. The procedure loops until it is interrupted or terminated. If the procedure is executed interactively, terminate it by pressing Ctrl/C or Ctrl/Y and by entering the STOP command or another DCL command that runs a new image in the process. If the procedure is executed in a batch job, enter the DELETE/ENTRY command to terminate it.
|