Previous Page | Next Page

SAS Functions and CALL Routines under Windows

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 Language Reference: Dictionary

Syntax
Details

Syntax

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

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.

Previous Page | Next Page | Top of Page