Macro Functions Listed by Category
DBCS
|
Name
|
Syntax and Description
|
|---|---|
|
%KINDEX (source, string)
Returns the position of the first character of a
string.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%KLEFT (text | text
expression)
Left-aligns an argument by removing leading blanks.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%KLENGTH (character
string | text expression)
Returns the length of a string.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%KSCAN (argument, n<,delimiters > )
Search for a word that is specified by its position
in a string.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%KSUBSTR (argument, position<, length> )
Produce a substring of a character string.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%KUPCASE (character
string | text expression)
Convert values to uppercase.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%QKLEFT (text | text
expression)
Left-aligns an argument by removing leading blanks.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%QKSCAN (argument, n<,delimiters > )
Search for a word that is specified by its position
in a string.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%QKSUBSTR (argument, position<, length> )
Produce a substring of a character string.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%QKUPCASE (character
string | text expression)
Convert values to uppercase.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
|
Encoding
|
Name
|
Syntax and Description
|
|---|---|
|
%COPY_TO_NEW_ENCODING(from_dsname, to_dsname, new_encoding)
Creates a new version of a data set with a specified
encoding.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
| |
|
%COPY_TO_UTF8(from_dsname, to_dsname);
Creates a new version of a data set in UTF-8 encoding.
Product: Base SAS
Document: SAS National Language Support (NLS): Reference Guide
|
Last updated: October 19, 2022