Chapter Contents

Previous

Next
ZIPFIPS

ZIPFIPS



Converts ZIP codes to FIPS state codes

Category: State and ZIP Code


Syntax
Arguments
Details
Examples
See Also

Syntax

ZIPFIPS(zip-code)

Arguments

zip-code
specifies any SAS character expression containing a five-digit ZIP code.
Requirement: The character expressions you use must have a length of five, or the ZIPFIPS function generates an error.


Details

The ZIPFIPS function returns the two-digit numeric U.S. Federal Information Processing Standards (FIPS) code corresponding to its five-character ZIP code argument.


Examples

SAS Statements Results
fips=zipfips('27511');
put fips;

 
37
a='27511';
fips=zipfips(a);
put fips;

 

37


See Also

Functions:
ZIPNAME
ZIPNAMEL
ZIPSTATE


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.