| Functions and CALL Routines |
Right aligns a character expression
-
argument
-
specifies any SAS character expression.
If the RIGHT 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.
The RIGHT function returns an argument with trailing
blanks moved to the start of the value. The argument's length does not change.
|
SAS Statements |
Results |
|
----+----1----+
|
a='Due Date ';
b=right(a);
put a $10.;
put b $10.;
|
Due Date
Due Date
|
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.