Chapter Contents |
Previous |
Next |
$w. |
Category: | Character |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
$w. |
Range: | 1-32767 |
Details |
The $w. informat trims leading blanks and left aligns the values before storing the text. In addition, if a field contains only blanks and a single period, $w. converts the period to a blank because it interprets the period as a missing value. The $w. informat treats two or more periods in a field as character data.
Comparisons |
Examples |
input @1 name $5.;
Data Lines | Results* |
---|---|
----+----1 |
|
XYZ |
XYZ## |
XYZ |
XYZ## |
. |
|
X YZ |
X#YZ# |
*The character # represents a blank space. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.