Sample 25121: Read a social security number (SSN) as numeric
Use the COMMAw.d INFORMAT to read in a social security number (SSN) containing embedded hyphens and create a numeric value.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
data test;
input ssn :comma9.;
datalines;
123-45-6789
000-00-0000
111-22-3333
;
proc print;
run;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
Obs ssn
1 123456789
2 0
3 111223333
Use the COMMAw.d INFORMAT to read in a social security number (SSN)
containing embedded hyphens and create a numeric value.
| Type: | Sample |
| Topic: | SAS Reference ==> DATA Step SAS Reference ==> Informats ==> Numeric ==> COMMA
|
| Date Modified: | 2008-06-04 12:45:47 |
| Date Created: | 2005-01-31 14:43:21 |
Operating System and Release Information
| SAS System | Base SAS | All | n/a | n/a |