TRANSLATE Function: UNIX

Replaces specific characters in a character expression.
Category: Character
UNIX specifics: to and from arguments are required
See: TRANSLATE Function in SAS Functions and CALL Routines: Reference

Syntax

TRANSLATE(source,to-1,from-1<,…to-n,from-n> )

Required Arguments

source
specifies a constant, variable, or expression that contains the original character value.
to
specifies the characters that you want TRANSLATE to use as substitutes.
from
specifies the characters that you want TRANSLATE to replace.

Details

Note: This version is a simplified version of the TRANSLATE function syntax. For the complete syntax and its explanation, see the TRANSLATE Function in SAS Functions and CALL Routines: Reference.
Under UNIX, you must specify pairs of to and from arguments, and you can use a comma as a placeholder.