Macro Functions by Category

The following table provides brief descriptions of the SAS NLS macro functions. For more information, see the NLS entry for each macro function.
Category Language elements Description
DBCS%KCMPRES Macro FunctionCompresses multiple blanks and removes leading and trailing blanks.
%KINDEX Macro FunctionReturns the position of the first character of a string.
%KLEFT and %QKLEFT Macro FunctionsLeft-aligns an argument by removing leading blanks.
%KLENGTH Macro FunctionReturns the length of a string.
%KSCAN and %QKSCAN FunctionsSearch for a word that is specified by its position in a string.
%KSUBSTR and %QKSUBSTR Macro FunctionsProduce a substring of a character string.
%KUPCASE and %QKUPCASE Macro FunctionsConvert values to uppercase.