Sample 24757: Convert state postal codes to FIPS state codes
Use STFIPS function to convert state postal codes to FIPS state codes.
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 a;
fips=stfips('NC');
put fips=;
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.
OUTPUT to SAS log
fips=37
Use STFIPS function to convert state postal codes to FIPS state codes.
| Type: | Sample |
| Topic: | SAS Reference ==> DATA Step SAS Reference ==> Functions ==> State and ZIP Code
|
| Date Modified: | 2005-12-16 03:02:58 |
| Date Created: | 2004-09-30 14:09:11 |
Operating System and Release Information
| SAS System | Base SAS | All | n/a | n/a |