Previous Page | Next Page

Formats

SSNw. Format



Writes Social Security numbers.
Category: Numeric
Alignment: none

Syntax
Syntax Description
Details
Examples

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 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.


Examples

put id ssn11.;

Value of id Results

----+----1----+
263878439
263-87-8439

Previous Page | Next Page | Top of Page