TRANSLATE Function: Windows

Replaces specific characters in a character expression.
Category: Character
Windows specifics: Required syntax; pairs of to and from arguments are optional
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 the SAS 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

Under Windows, you do not have to provide pairs of to and from arguments. However, if you do not use pairs, you must supply a comma as a place holder.