| Functions for NLS |
The following categories relate to NLS issues:
| Category | Description |
| Character | processes character data |
| Currency Conversion | converts one currency to another currency |
| DBCS | processes double-byte character set. |
| Date and Time | processes data and time data. |
| Locale | processes data based on the specified locale. |
| Variable Information | processes variable information. |
The following table provides brief descriptions of the SAS functions. For more detailed descriptions, see the NLS entry for each function.
| Category | Functions for NLS | Description |
|---|---|---|
| Character |
KCVT Function |
Converts data from one type of encoding data to another encoding data. |
|
TRANTAB Function |
Transcodes data by using the specified translation table. | |
|
UNICODE Function |
converts Unicode characters to the current SAS session encoding. | |
|
UNICODEC Function |
converts characters in the current SAS session encoding to Unicode characters. | |
|
UNICODELEN Function |
specifies the length of the character unit for the Unicode data. | |
|
UNICODEWIDTH Function |
specifies the length of a display unit for the Unicode data. | |
| DBCS |
KCOMPARE Function |
Returns the result of a comparison of character expressions. |
|
KCOMPRESS Function |
Removes specified characters from a character expression. | |
|
KCOUNT Function |
Returns the number of double-byte characters in an expression. | |
|
KINDEX Function |
Searches a character expression for a string of characters. | |
|
KINDEXC Function |
Searches a character expression for specified characters. | |
|
KLEFT Function |
Left-aligns a character expression by removing unnecessary leading DBCS blanks and SO/SI. | |
|
KLENGTH Function |
Returns the length of an argument. | |
|
KLOWCASE Function |
Converts all letters in an argument to lowercase. | |
|
KPROPCASE Function |
Converts Chinese, Japanese, Korean, Taiwanese (CJKT) characters. | |
|
KPROPCHAR Function |
Converts special characters to normal characters. | |
|
KPROPDATA Function |
Removes or converts unprintable characters. | |
|
KREVERSE Function |
Reverses a character expression. | |
|
KRIGHT Function |
Right-aligns a character expression by trimming trailing DBCS blanks and SO/SI. | |
|
KSCAN Function |
Selects a specified word from a character expression. | |
|
KSTRCAT Function |
Concatenates two or more character expressions. | |
|
KSUBSTR Function |
Extracts a substring from an argument. | |
|
KSUBSTRB Function |
Extracts a substring from an argument according to the byte position of the substring in the argument. | |
|
KTRANSLATE Function |
Replaces specific characters in a character expression. | |
|
KTRIM Function |
Removes trailing DBCS blanks and SO/SI from character expressions. | |
|
KTRUNCATE Function |
Truncates a numeric value to a specified length. | |
|
KUPCASE Function |
Converts all letters in an argument to uppercase. | |
|
KUPDATE Function |
Inserts, deletes, and replaces character value contents. | |
|
KUPDATEB Function |
Inserts, deletes, and replaces the contents of the character value according to the byte position of the character value in the argument. | |
|
KVERIFY Function |
Returns the position of the first character that is unique to an expression. | |
| Date and Time |
NLDATE Function |
Converts the SAS date value to the date value of the specified locale by using the date format descriptors. |
|
NLDATM Function |
Converts the SAS datetime value to the time value of the specified locale by using the datetime- format descriptors. | |
|
NLTIME Function |
Converts the SAS time or the datetime value to the time value of the specified locale by using the NLTIME descriptors. | |
| Locale |
GETLOCENV Function |
Returns the current locale/language environment. |
|
GETPXLANGUAGE Function |
Returns the current two-letter language code. | |
|
GETPXLOCALE Function |
Returns the POSIX locale value for a SAS locale. | |
|
GETPXREGION Function |
Returns the current two-letter region code. | |
|
SORTKEY Function |
creates a linguistic sort key. | |
| Variable Information |
VARTRANSCODE Function |
Returns the transcode attribute of a SAS data set variable. |
|
VTRANSCODE Function |
Returns a value that indicates whether transcoding is enabled for the specified character variable. | |
|
VTRANSCODEX Function |
Returns a value that indicates whether transcoding is enabled for the specified argument. |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.