Previous Page | Next Page

Formats for NLS

$UCS2LEw. Format



Processes a character string that is in little-endian, 16-bit, UCS2, Unicode encoding, and then writes the character string in the encoding of the current SAS session.
Category: Character
Alignment: left

Syntax
Syntax Description
Details
Comparison
Example
See Also

Syntax

$UCS2LEw.


Syntax Description

w

specifies the width of the output field. Specify enough width to accommodate the 16-bit size of the Unicode characters.

Default: 8
Range: 1-32000

Details

The $UCS2LEw. format writes a character string in the encoding of the current SAS session. It processes character strings that are in little-endian, 16-bit, UCS2 (universal character set code in two octets), Unicode encoding.


Comparison

The $UCS2LEw. format performs processing that is the opposite of the $UCS2Lw. format.


Example

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

Statements Result

----+----1
x ='275941004200'x;

put x $ucs2le4.;
[untitled graphic]AB


See Also

Formats:

$UCS2Lw. Format

Informats:

$UCS2Lw. Informat

$UCS2LEw. Informat

Previous Page | Next Page | Top of Page