Chapter Contents

Previous

Next
SSNw.

SSNw.



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

Values Results

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.