/* This SAS program will make a SAS DATASET from the GEO Header Segment */
/* User will have to modify the libname,data and infile statements to conform to his environment*/
/* */
libname xxx 'c:\mark';
data xxx.mheader;
infile 'c:\mark\akgeo.upl' lrecl = 400 missover pad;
INPUT
@1 FILEID $6./*File Identification*/
@7 STUSAB $2./*State/US-Abbreviation (USPS)*/
@9 SUMLEV $3./*Summary Level*/
@12 GEOCOMP $2./*Geographic Component*/
@14 CHARITER $3./*Characteristic Iteration*/
@17 CIFSN $2./*Characteristic Iteration File Sequence Number*/
@19 LOGRECNO $7./*Logical Record Number*/
@26 REGION $1./*Region*/
@27 DIVISION $1./*Division*/
@28 STATECE $2./*State (Census)*/
@30 STATE $2./*State (FIPS)*/
@32 COUNTY $3./*County*/
@35 COUNTYSC $2./*County Size Code*/
@37 COUSUB $5./*County Subdivision (FIPS)*/
@42 COUSUBCC $2./*FIPS County Subdivision Class Code*/
@44 COUSUBSC $2./*County Subdivision Size Code*/
@46 PLACE $5./*Place (FIPS)*/
@51 PLACECC $2./*FIPS Place Class Code*/
@53 PLACEDC $1./*Place Description Code*/
@54 PLACESC $2./*Place Size Code*/
@56 TRACT $6./*Census Tract*/
@62 BLKGRP $1./*Block Group*/
@63 BLOCK $4./*Block*/
@67 IUC $2./*Internal Use Code*/
@69 CONCIT $5./*Consolidated City (FIPS)*/
@74 CONCITCC $2./*FIPS Consolidated City Class Code*/
@76 CONCITSC $2./*Consolidated City Size Code*/
@78 AIANHH $4./*American Indian Area/Alaska Native Area/Hawaiian Home Land (Census)*/
@82 AIANHHFP $5./*American Indian Area/Alaska Native Area/Hawaiian Home Land (FIPS)*/
@87 AIANHHCC $2./*FIPS American Indian Area/Alaska Native Area/Hawaiian Home Land Class Code*/
@89 AIHHTLI $1./*American Indian Trust Land/Hawaiian Home Land Indicator*/
@90 AITSCE $3./*American Indian Tribal Subdivision (Census)*/
@93 AITS $5./*American Indian Tribal Subdivision (FIPS)*/
@98 AITSCC $2./*FIPS American Indian Tribal Subdivision Class Code*/
@100 ANRC $5./*Alaska Native Regional Corporation (FIPS)*/
@105 ANRCCC $2./*FIPS Alaska Native Regional Corporation Class Code*/
@107 MSACMSA $4./*Metropolitan Statistical Area/Consolidated Metropolitan Statistical Area*/
@111 MASC $2./*MSA/CMSA Size Code*/
@113 CMSA $2./*Consolidated Metropolitan Statistical Area*/
@115 MACCI $1./*Metropolitan Area Central City Indicator*/
@116 PMSA $4./*Primary Metropolitan Statistical Area*/
@120 NECMA $4./*New England County Metropolitan Area*/
@124 NECMACCI $1./*New England County Metropolitan Area Central City Indicator*/
@125 NECMASC $2./*New England County Metropolitan Area Size Code*/
@127 EXI $1./*Extended Place Indicator*/
@128 UA $5./*Urban Area*/
@133 UASC $2./*Urban Area Size Code*/
@135 UATYPE $1./*Urban Area Type*/
@136 UR $1./*Urban/Rural*/
@137 CD106 $2./*Congressional District (106th)*/
@139 CD108 $2./*Congressional District (108th)*/
@141 CD109 $2. /*Congressional District (109th)*/
@143 CD110 $2./*Congressional District (110th)*/
@145 SLDU $3./*State Legislative District (Upper Chamber)*/
@148 SLDL $3./*State Legislative District (Lower Chamber)*/
@151 VTD $6./*Voting District*/
@157 VTDI $1./*Voting District Indicator*/
@158 ZCTA3 $3./*ZIP Code Tabulation Area (3 digit)*/
@161 ZCTA5 $5./*ZIP Code Tabulation Area (5 digit)*/
@166 SUBMCD $5./*Subbarrio (FIPS)*/
@171 SUBMCDCC $2./*FIPS Subbarrio Class Code*/
@173 AREALAND $14./*Area (Land)*/
@187 AREAWATR $14./*Area (Water)*/
@201 NAME $90./*Area Name-Legal/Statistical Area Description (LSAD) Term-Part Indicator*/
@291 FUNCSTAT $1./*Functional Status Code*/
@292 GCUNI $1./*Geographic Change User Note Indicator*/
@293 POP100 $9./*Population Count (100%)*/
@302 RES $9./*Reserved*/
@311 INTPTLAT $9./*Internal Point (Latitude)*/
@320 INTPTLON $10./*Internal Point (Longitude)*/
@330 LSADC $2./*Legal/Statistical Area Description Code*/
@332 PARTFLAG $1./*Part Flag*/
@333 SDELM $5./*School District (Elementary)*/
@338 SDSEC $5./*School District (Secondary)*/
@343 SDUNI $5./*School District (Unified)*/
@348 TAZ $6./*Traffic Analysis Zone*/
@354 UGA $5./*Oregon Urban Growth Area*/
@359 PUMA5 $5./*Public Use Microdata Area - 5% File*/
@364 PUMA1 $5./*Public Use Microdata Area - 1% File*/
@369 RESERVED $32./*Reserved*/;
run;