| Functions and CALL Routines |
Left aligns a SAS character expression
-
argument
-
specifies any SAS character expression.
If the LEFT 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.
LEFT returns an argument with leading blanks moved to
the end of the value. The argument's length does not change.
|
SAS Statements |
Results |
|
----+----1----+
|
a=' DUE DATE';
b=left(a);
put b;
|
DUE DATE
|
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.