$UCS2BEw. Informat

Reads a character string that is in the encoding of the current SAS session and then converts the character string to big-endian, 16-bit, UCS2, Unicode encoding.
Category: Character

Syntax

$UCS2BEw.

Syntax Description

w
specifies the width of the input field. Specify enough width to accommodate the 16-bit size of the Unicode characters.
Default:8
Range:1–32000

Comparisons

The $UCS2BEw. informat performs processing that is opposite of the $UCS2Bw. informat.

Example

This example uses the Japanese Shift_JIS encoding, which is supported under the UNIX operating environment.
Statements
Result
----+----1----+
ucs2str=input (' Japanese', $ucs2be2.);
put ucs2str=$hex4.;
ucs2str=2020

See Also

Informat: