Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

CCODE^XIPUTIL(): FIPS Code Data

Reference Type: Supported, Category: Address Hygiene, ICR#: 3618

Description

The CCODE^XIPUTIL API returns all the data associated for a Federal Information Processing Standards (FIPS) code.

Format

  CCODE^XIPUTIL(fips,.xipc)

Input Parameters

fips:

(required) FIPS Code.

Output Parameters

xipc:

An array containing the following:

  • XIPC("COUNTY")—County associated with this FIPS code.

  • XIPC("FIPS CODE")—5-digit FIPS county code.

  • XIPC("INACTIVE DATE")—Date the FIPS code was inactivated.

  • XIPC("LATITUDE")—Estimated Latitude of the county.

  • XIPC("LONGITUDE")—Estimated Longitude of the county.

  • XIPC("STATE")—State associated with this FIPS code.

  • XIPC("STATE POINTER")—Pointer to the state in the STATE (#5) file.

  • XIPC("ERROR")—Errors encountered during lookup.

Example

>S ZFIPS=54041

>S ZTMP=""

>D CCODE^XIPUTIL(ZFIPS,.ZTMP)

>ZW ZTMP,ZFIPS
ZFIPS=54041
ZTMP=
ZTMP("COUNTY")=LEWIS
ZTMP("FIPS CODE")=54041
ZTMP("INACTIVE DATE")=
ZTMP("LATITUDE")=39:00N
ZTMP("LONGITUDE")=80:28W
ZTMP("STATE")=WEST VIRGINIA
ZTMP("STATE POINTER")=54