Left aligns a SAS character expression
Category: Character
LEFT ( argument )
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 |
Functions:
'COMPRESS Function' on page 458
'RIGHT Function' on page 787
'TRIM Function' on page 862