$CHARw. Format
Writes standard character data.
Category: |
Character |
Alignment: |
left |
Syntax
Syntax Description
- w
-
specifies the width
of the output field.
Default:8 if the length of variable is undefined; otherwise,
the length of the variable
Range:1–32767
Comparisons
-
The $CHAR
w. format is identical to the $
w. format.
-
The $CHAR
w. and $
w. formats do not trim
leading blanks. To trim leading blanks, use the LEFT function to left
align character data. Alternatively, use the PUT statement with the
colon (:) format modifier and the format of your choice to produce
list output.
-
Use the following table to compare
the SAS format $CHAR8. with notation in other programming languages: