Macro Functions Syntax Listed by Category

DBCS

K

Name
Syntax and Description
%KCMPRES (text | text expression)
Compresses multiple blanks and removes leading and trailing blanks.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide
%KINDEX (source, string)
Returns the position of the first character of a string.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide
%KLEFT (text | text expression)
%QKLEFT (text | text expression)
Left-aligns an argument by removing leading blanks.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide
%KLENGTH (character string | text expression)
Returns the length of a string.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide
%KSCAN (argument, n <,charlist <,modifiers > > )
%QKSCAN (argument, n <,charlist <,modifiers > > )
Search for a word that is specified by its position in a string.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide
%KSUBSTR (argument, position <, length > )
%QKSUBSTR (argument, position <, length > )
Produce a substring of a character string.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide
%KUPCASE (character string | text expression)
%QKUPCASE (character string | text expression)
Convert values to uppercase.
Product: Base SAS
Document: SAS 9.3 National Language Support (NLS): Reference Guide