Writes Social Security numbers.
Category: |
Numeric
|
Alignment: |
none
|
-
w
-
specifies the width of the output field.
Default: |
11 |
Restriction: |
w must be 11 |
If the value is missing, SAS writes nine
single periods with dashes between the third and fourth periods and between
the fifth and sixth periods. If the value contains fewer than nine digits,
SAS right aligns the value and pads it with zeros on the left. If the value
has more than nine digits, SAS writes it as a missing value.
put id ssn11.;
Value of id |
Results |
|
----+----1----+
|
263878439
|
263-87-8439
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.