FIPNAMEL Function


FIPNAMEL Function

Converts two-digit FIPS codes to mixed case state names

Category: State and ZIP Code

Syntax

FIPNAMEL ( expression )

Arguments

expression

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

Details

If the FIPNAMEL function returns a value to a variable that has not yet been assigned a length, by default the variable is assigned a length of 20.

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 Function' on page 541

  • 'FIPSTATE Function' on page 543

  • 'STFIPS Function' on page 831

  • 'STNAME Function' on page 832

  • 'STNAMEL Function' on page 833




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net