Purpose

ALPHAVAL converts data from either wide or mixed to alphanumeric.
 

Syntax

variable = ALPHAVAL(operand)
 

Operation

operand can be any valid numeric, alphanumeric or wide character, constant, variable, or expression.
 

Remarks

If operand is a valid wide character constant, variable, or expression, the result is an alphanumeric string representing any applicable single byte display form of the wide characters contained in the operand.

If operand is a valid alphanumeric string constant, variable, or expression, the result is an alphanumeric string representing the single byte display form (if it exists) of any characters encoded in the operand.  Single-byte characters are passed through 'as is'.

If operand is a mixed field, the results will still be an alpha variable.  The mixed input contains both single and wide characters, the wide characters will be converted to the matching single characters (blanks if not matching) and the input single characters will just be copied.

For any wide character with no single byte display form, a single byte space character is substituted.

For numeric operands, see the ALPHA command.
 

Comment on this topic

Topic ID: 520019