Previous Topic Next topic Print topic


WCHARVAL Function

Purpose

Returns a WIDECHAR(1) character value corresponding to an integer value.

Syntax

WCHARVAL(x)

Parameters

x is an expression converted to SIGNED FIXED BIN (15).

Note: UNSIGNED FIXED BIN (16) is not a currently supported data type.

Description

The WCHARVAL function converts an expression to FIXED BIN(15) and returns the corresponding WIDECHAR(1) character.

Examples

DCL WC WCHAR (1);
DCL C  CHAR (1);

WC = WCHARVAL(65);
PUT SKIP LIST (HEX(WC));   /* 0041 */
C = WC;
PUT SKIP LIST(C);          /* A    */

Restrictions

None.

Previous Topic Next topic Print topic