The class condition determines whether the content of a data item is alphabetic, alphabetic-lower, alphabetic-upper, numeric, or contains only the characters in the set of characters specified by the CLASS clause as defined in the SPECIAL-NAMES paragraph of the Environment Division.
___ Format _____________________________________________________________ | | | >>__identifier-1__ ____ __ _____ __ _NUMERIC__________ _____________>< | | |_IS_| |_NOT_| |_ALPHABETIC_______| | | |_ALPHABETIC-LOWER_| | | |_ALPHABETIC-UPPER_| | | |_class-name_______| | | |_ DBCS ___________| | | |_ KANJI __________| | | | |________________________________________________________________________|
If identifier-1 is a function-identifier, it must reference an alphanumeric function.
If its PICTURE does not contain an operational sign, the identifier being tested is determined to be numeric only if the contents are numeric and an operational sign is not present.
If its PICTURE does contain an operational sign, the identifier being tested is determined to be numeric only if the item is an elementary item, the contents are numeric, and a valid operational sign is present.
The NUMERIC test cannot be used with an identifier described as alphabetic or as a group item that contains one or more signed elementary items.
For numeric data items, the identifier being tested can be described
The ALPHABETIC test cannot be used with an identifier described as numeric.
The ALPHABETIC-LOWER test cannot be used with an identifier described as numeric.
The ALPHABETIC-UPPER test cannot be used with an identifier described as numeric.
The class-name test must not be used with an identifier described as numeric.
The class test is not valid for items defined as USAGE IS INDEX, as these items do not belong to any class or category.
Table 20shows valid forms of the class test.
Table 20. Valid Forms of the Class Test for Different Types of Identifiers |
||
Type of Identifier | Valid Forms of the Class Test | |
Alphabetic |
ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER class-name |
NOT ALPHABETIC NOT ALPHABETIC-LOWER NOT ALPHABETIC-UPPER NOT class-name |
---|---|---|
Alphanumeric, Alphanumeric-edited, or Numeric-edited |
ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER NUMERIC class-name |
NOT ALPHABETIC NOT ALPHABETIC-LOWER NOT ALPHABETIC-UPPER NOT NUMERIC NOT class-name |
External-Decimal X or Internal-Decimal |
NUMERIC X |
NOT NUMERIC X |
X DBCS X |
X DBCS X KANJI |
X NOT DBCS X NOT KANJI |
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.