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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.