Replaces specific characters in a character string.
Category: | Character |
Restriction: | I18N Level 0 functions are designed for use with Single Byte Character Sets (SBCS) only. |
Tip: | DBCS equivalent function is KTRANSLATE. |
See: | TRANSLATE Function: Windows in SAS Companion for Windows |
TRANSLATE Function: UNIX in SAS Companion for UNIX Environments | |
TRANSLATE Function: z/OS in SAS Companion for z/OS |
specifies a character constant, variable, or expression that contains the original character string.
specifies the characters that you want TRANSLATE to use as substitutes.
specifies the characters that you want TRANSLATE to replace.
Interaction | Values of to and from correspond on a character-by-character basis; TRANSLATE changes the first character of from to the first character of to, and so on. If to has fewer characters than from, TRANSLATE changes the extra from characters to blanks. If to has more characters than from, TRANSLATE ignores the extra to characters. |