VMS Help
COBOL, PROCEDURE_DIVISION, EVALUATE
*Conan The Librarian
|
The EVALUATE statement selects a program action based on the evaluation
of one or more conditions.
Format -
{ subj-item } [ { subj-item } ]
EVALUATE { TRUE } [ ALSO { TRUE } ] ...
{ FALSE } [ { FALSE } ]
{ { { ANY }
{ { { cond }
{ {WHEN{ TRUE }
{ { { FALSE }
{ { { [NOT] {obj-item [{THRU } obj-item]} }
{ { { { [{THROUGH} ]} }
[ { ANY }] } }
[ { cond }] } }
[ALSO { TRUE }] ... } ... stment} ...
[ { FALSE }] } }
[ { [NOT] {obj-item [{THRU } obj-item]}}] } }
[ { { [{THROUGH} ]}}] } }
[ WHEN OTHER stment ]
[ END-EVALUATE ]
is an identifier, an arithmetic or conditional expression, or a literal
other than the figurative constant ZERO.
is a conditional expression.
is a literal, an identifier, or an arithmetic expression.
is an imperative statement.