Previous Page | Next Page

Informats for NLS

$UCS2Lw. Informat



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

Syntax
Syntax Description
Comparisons
Examples
See Also

Syntax

$UCS2Lw.


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: 2-32000

Comparisons

The $UCS2Lw. informat performs processing that is opposite of the $UCS2LEw. informat. If you are processing data within the same operating environment, then use the $UCS2Xw.informat. If you are processing data from different operating environments, then use the $UCS2Bw. and $UCS2Lw. informats.


Examples

This example uses the Japanese Shift_JIS encoding, which is supported under the UNIX operating environment.

Statements Result

----+----1----+
x=input('2759'x,$ucs2l.);

put x=$hex4.;
x=91e5


See Also

Formats:

$UCS2Bw. Format

$UCS2Lw. Format

$UCS2Xw. Format

$UTF8Xw. Format

Informats:

$UCS2Bw. Informat

$UCS2Xw. Informat

$UTF8Xw. Informat

Previous Page | Next Page | Top of Page