COBOL Manual for TNS and TNS/R Programs
Procedure Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
8-59
Simple Conditions
Class Conditions
The class condition determines whether the operand is numeric, alphabetic, lowercase
alphabetic, uppercase alphabetic, or contains only characters in the set defined by a
CLASS clause in the SPECIAL-NAMES paragraph of the Environment Division.
identifier
is the identifier of a data item for which either:
•
It is described as USAGE DISPLAY.
•
It is of the numeric class, and its usage is not DISPLAY.
class-name
is the name of a class described in the SPECIAL-NAMES paragraph.
Usage Considerations:
•
NOT Modifier
When NOT appears, the compiler considers it and the next keyword to form a
single class condition. For example, NOT NUMERIC is a truth test that determines
if the operand is nonnumeric.
•
NUMERIC and NOT NUMERIC
You cannot use the NUMERIC and NOT NUMERIC tests with either:
°
An alphabetic data item
°
A data structure that contains any elementary item not described as USAGE
DISPLAY or whose description indicates the presence of an operational sign
identifier
NUMERIC
ALPHABETIC
ALPHABETIC-LOWER
ALPHABETIC-UPPER
class-name
IS NOT
VST120.vsd