Functions and CALL Routines

LEFT Function



Left aligns a SAS character expression
Category: Character

Syntax
Arguments
Details
Examples
See Also

Syntax

LEFT(argument)


Arguments

argument

specifies any SAS character expression.


Details

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.


Examples

SAS Statements Results

----+----1----+
a='  DUE DATE';
b=left(a);
put b;
 

DUE DATE


See Also

Functions:

COMPRESS Function

RIGHT Function

TRIM Function

space
Previous Page | Next Page | Top of Page