Replaces character value contents.
Category: | Character |
Restriction: | I18N Level 0 functions are designed for use with Single Byte Character Sets (SBCS) only. |
Tip: | DBCS equivalent functions are KSUBSTR and KSUBSTRB . |
specifies a character variable.
specifies a numeric constant, variable, or expression that is the beginning character position.
specifies a character constant, variable, or expression that will replace the contents of variable.
Tip | Enclose a literal string of characters in quotation marks. |
specifies a numeric constant, variable, or expression that is the length of the substring that will be replaced.
Restriction | length cannot be larger than the length of the expression that remains in variable after position. |
Tip | If you omit length, SAS uses all of the characters on the right side of the assignment statement to replace the values of variable. |