Previous Page | Next Page

Formats for NLS

$UCS4Xw. Format



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

Syntax
Syntax Description
Details
Comparisons
Example
See Also

Syntax

$UCS4Xw.


Syntax Description

w

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

Default: 4
Range: 4-32767

Details

The $UCS4Xw. format writes a character string in 32-bit, UCS4 (universal character set code in two octets), Unicode encoding, by using byte order that is native to the operating environment.


Comparisons

The $UCS4Xw. format performs processing that is the opposite of the $UCS4XEw. format. If you are exchanging data within the same operating environment, use the $UCS4Xw. format. If you are exchanging data with a different operating environment, use the $UCS4Bw. format or $UCS4Lw. format.


Example

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

Statements Results

----+----1
x = ' [untitled graphic]';

put x $ucs4x4.;
'00005927'x (binary) or '27590000'x (little endian)


See Also

Formats:

$UCS2Lw. Format

$UCS4XEw. Format

$UCS2Xw. Format

$UCS4Bw. Format

$UCS4Lw. Format

$UTF8Xw. Format

Informats:

$UCS2Bw. Informat

$UCS2Lw. Informat

$UCS2Xw. Informat

$UCS4Bw. Informat

$UCS4Bw. Format

$UCS4Lw. Informat

$UCS4Xw. Informat

$UTF8Xw. Informat

Previous Page | Next Page | Top of Page