Functions by Category

The following categories relate to NLS issues:
Categories of NLS Functions
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.
Category Language elements Description
CharacterKCVT FunctionConverts data from one type of encoding data to another encoding data.
TRANTAB FunctionTranscodes data by using the specified translation table.
UNICODE Functionconverts Unicode characters to the current SAS session encoding.
UNICODEC Functionconverts characters in the current SAS session encoding to Unicode characters.
UNICODELEN Functionspecifies the length of the character unit for the Unicode data.
UNICODEWIDTH Functionspecifies the length of a display unit for the Unicode data.
Date and TimeNLDATE FunctionConverts the SAS date value to the date value of the specified locale by using the date format descriptors.
NLDATM FunctionConverts the SAS datetime value to the time value of the specified locale by using the datetime-format descriptors.
NLTIME FunctionConverts the SAS time or the datetime value to the time value of the specified locale by using the NLTIME descriptors.
DBCSKCOMPARE FunctionReturns the result of a comparison of character expressions.
KCOMPRESS FunctionRemoves specified characters from a character expression.
KCOUNT FunctionReturns the number of double-byte characters in an expression.
KINDEX FunctionSearches a character expression for a string of characters.
KINDEXC FunctionSearches a character expression for specified characters.
KLEFT FunctionLeft-aligns a character expression by removing unnecessary leading DBCS blanks and SO/SI.
KLENGTH FunctionReturns the length of an argument.
KLOWCASE FunctionConverts all letters in an argument to lowercase.
KPROPCASE FunctionConverts Chinese, Japanese, Korean, Taiwanese (CJKT) characters.
KPROPCHAR FunctionConverts special characters to normal characters.
KPROPDATA FunctionRemoves or converts unprintable characters.
KREVERSE FunctionReverses a character expression.
KRIGHT FunctionRight-aligns a character expression by trimming trailing DBCS blanks and SO/SI.
KSCAN FunctionSelects a specified word from a character expression.
KSTRCAT FunctionConcatenates two or more character expressions.
KSUBSTR FunctionExtracts a substring from an argument.
KSUBSTRB FunctionExtracts a substring from an argument according to the byte position of the substring in the argument.
KTRANSLATE FunctionReplaces specific characters in a character expression.
KTRIM FunctionRemoves trailing DBCS blanks and SO/SI from character expressions.
KTRUNCATE FunctionTruncates a string to a specified length in byte unit without breaking multibyte characters.
KUPCASE FunctionConverts all letters in an argument to uppercase.
KUPDATE FunctionInserts, deletes, and replaces character value contents.
KUPDATEB FunctionInserts, deletes, and replaces the contents of the character value according to the byte position of the character value in the argument.
KVERIFY FunctionReturns the position of the first character that is unique to an expression.
EncodingENCODCOMPAT FunctionVerifies the transcoding compatibility between two encodings.
ENCODISVALID Functionspecifies a valid encoding name.
LocaleGETLOCENV FunctionReturns the current locale/language environment.
GETPXLANGUAGE FunctionReturns the current two-letter language code.
GETPXLOCALE FunctionReturns the POSIX locale value for a SAS locale.
GETPXREGION FunctionReturns the current two-letter region code.
SASMSG FunctionSpecifies a message from a data set. The returned message is based on the current locale and a specified key.
SASMSGL FunctionSpecifies a message from a data set. The message is based on a specified locale value and a specified key value.
SORTKEY Functioncreates a linguistic sort key.
SETLOCALE FunctionSpecifies the locale keys for the current SAS locale.
Variable InformationVARTRANSCODE FunctionReturns the transcode attribute of a SAS data set variable.
VTRANSCODE FunctionReturns a value that indicates whether transcoding is enabled for the specified character variable.
VTRANSCODEX FunctionReturns a value that indicates whether transcoding is enabled for the specified argument.