SSNw. Format

Writes Social Security numbers.

Category: Numeric

Syntax

SSNw.

Syntax Description

w

specifies the width of the output field.

Default 11
Restriction w must be 11

Details

If the value is missing, SAS writes nine single periods with hyphens 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.

Example

put id ssn.;
Value of id
Result
----+----1----+
263878439
263-87-8439