CLASS CONDITIONS IN CONDITIONALS [ COMMUNICATOR 3000 XL, XL Release 1.1 (Core Software Release A.10.00) ] MPE/iX Communicators
COMMUNICATOR 3000 XL, XL Release 1.1 (Core Software Release A.10.00)
CLASS CONDITIONS IN CONDITIONALS
Allow class conditions as comparison values in conditional clauses.
Syntax
...condition-clause...
Parameters
NUMERIC This class condition includes the
ASCII characters "0" , "1" , "2" ,
"3" , "4" , "5" , "6" , "7" , "8" ,
"9" and a single operational
leading sign. This class test is
only valid for types X, U, 9, and
Z.
ALPHABETIC This class condition includes all
the ASCII native language
alphabetic characters (upper and
lower case) and space. This class
test is only valid for types X and
U.
ALPHABETIC-LOWER This class condition includes all
the ASCII lower case native
language alphabetic characters and
space. This class test is only
valid for type X.
ALPHABETIC-UPPER This class condition includes all
the ASCII upper case native
language alphabetic characters and
space. This class test is only
valid for types X and U.
Discussion
This enhancement permits Transact programmers to check if a character
string is all numeric or alphabetic.
Example
1) IF INPUT = ALPHABETIC THEN ... ELSE ...;
2) DATA (PART-NUMBER);
IF (PART-NUMBER) <> NUMERIC THEN ...;
MPE/iX Communicators