Chapter 11

State and ZIP Code Functions

 

Introduction

Functions That Convert FIPS Codes

FIPNAME

FIPNAMEL

FIPSTATE

Functions That Convert State Codes

STFIPS

STNAME

STNAMEL

Functions That Convert ZIP Codes

ZIPFIPS

ZIPNAME

ZIPNAMEL

ZIPSTATE

Functions That Compute Geographical Distance

GEODIST

ZIPCITYDISTANCE

 

Introduction

This group of functions allows you to convert between FIPS (Federal Information Processing Standards) codes, ZIP codes, two-digit state postal codes, and state names and abbreviations. For example, these functions let you store a ZIP code and print out a state name or abbreviation, computed from the code.

 

Two functions added with SAS 9.2, GEODIST and ZIPCITYDISTANCE, compute distances between two sets of longitude and ...

Get SAS Functions by Example, Second Edition, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.