Previous Page | Next Page

Functions and CALL Routines under UNIX

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

Syntax
Details

Syntax

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

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 Language Reference: Dictionary.  [cautionend]

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

Under UNIX, you must specify pairs of to and from arguments, and you can use a comma as a placeholder.

Previous Page | Next Page | Top of Page