
>>-DBVALIDATE--(--string--+--------+--)------------------------><
'-,--'C'-'
returns
1 if the
string is a valid mixed
string or SBCS string. Otherwise, returns
0. Mixed string
validation rules are:
- Only valid DBCS character codes
- DBCS string is an even number of bytes in length
- EBCDIC only — Proper SO and SI pairing.
In EBCDIC, if
C is omitted, only the leftmost
byte of each DBCS character is checked to see that it falls in the
valid range for the implementation it is being run on (that is, in
EBCDIC, the leftmost byte range is from X'41' to X'FE').