Terminates a CASE, DO, IF, or WHERE construct.
Syntax
END construct-keyword [construct-name] |
- construct-keyword
is one of the keywords DO,
IF, SELECT CASE,
or WHERE.
- construct-name
is the name given to the construct terminated by
this statement.
Description
The END
(construct) statement terminates a CASE,
DO, IF,
or WHERE construct.
If construct-name appears in the statement
that introduces the construct, the same name must also appear in
the END statement.
If no construct-name is given in the
introducing statement, none must appear in the END
statement.
Examples
For examples of the END
(construct) statement, see the descriptions of the DO,
IF, SELECT,
or WHERE statements
throughout this chapter.
Related statements
DO, IF,
SELECT CASE,
and WHERE
Related concepts
For related information, see the following: