|
HP OpenVMS DCL Dictionary
CONTINUE
Resumes execution of a DCL command, a program, or a command procedure
that was interrupted by pressing Ctrl/Y or Ctrl/C. You cannot resume
execution of the image if you have entered a command that executes
another image or if you have invoked a command procedure.
Format
CONTINUE
Parameters
None.
Description
The CONTINUE command enables you to resume processing an image or a
command procedure that was interrupted by pressing Ctrl/Y or Ctrl/C.
You cannot resume execution of the image if you have entered a command
that executes another image or if you have invoked a command procedure;
however, you can use CONTINUE after commands that do not execute
separate images. For a list of these commands, see the OpenVMS User's Manual.
You can abbreviate the CONTINUE command to a single letter, C.
The CONTINUE command serves as the target command of an IF or ON
command in a command procedure. The CONTINUE command is also a target
command when it follows a label that is the target of a GOTO command.
Examples
#1 |
$ RUN MYPROGRAM_A
[Ctrl/Y]
$ SHOW TIME
14-DEC-2001 13:40:12
$ CONTINUE
|
In this example, the RUN command executes the program MYPROGRAM_A.
While the program is running, pressing Ctrl/Y interrupts the image. The
SHOW TIME command requests a display of the current date and time. The
CONTINUE command resumes the image.
#2 |
$ ON SEVERE_ERROR THEN CONTINUE
|
In this example, the command procedure statement requests the command
interpreter to continue executing the procedure if any warning, error,
or severe error status value is returned from the execution of a
command or program. This ON statement overrides the default action,
which is to exit from a procedure following errors or severe errors.
|