Chapter Contents

Previous

Next
FIPNAMEL

FIPNAMEL



Converts FIPS codes to mixed case state names

Category: State and ZIP Code


Syntax
Arguments
Details
Comparisons
Examples
See Also

Syntax

FIPNAMEL(expression)

Arguments

expression
specifies a numeric expression that represents a U.S. FIPS code.


Details

The FIPNAMEL function converts a U.S. Federal Information Processing Standards (FIPS) code to the corresponding state or U.S. territory name in mixed case, returning a value of up to 20 characters.


Comparisons

The FIPNAME, FIPNAMEL, and FIPSTATE functions take the same argument but return different values. FIPNAME returns uppercase state names. FIPNAMEL returns mixed case state names. FIPSTATE returns a two-character state postal code (or world-wide GSA geographic code for U.S. territories) in uppercase.


Examples

The examples show the differences when using FIPNAME, FIPNAMEL, and FIPSTATE.

SAS Statements Results
x=fipname(37);
put x;

 
NORTH CAROLINA
x=fipnamel(37);
put x;
 
North Carolina
x=fipstate(37);
put x;
 
NC


See Also

Functions:
FIPNAME
FIPSTATE
STFIPS
STNAME
STNAMEL


Chapter Contents

Previous

Next

Top of Page

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