O'Reilly logo

SAS Functions by Example, Second Edition, 2nd Edition by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required