REVERSE Function


Reverses a character expression

Category: Character

Syntax

REVERSE ( argument )

Arguments

argument

  • specifies any SAS character expression.

Details

If the REVERSE function returns a value to a variable that has not yet been assigned a length, by default the variable length is determined by the length of the first argument.

Examples

SAS Statements

Results

  backward=reverse('xyz  ');   put backward .;  
  ----+----1   zyx  



SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net