x cd /pub/data/sf32000x/Tools; %let pgm=mouauc_view; filename pgm "&pgm..sas"; /*---Create the sas view sf32000x.mouaucs which is just a subset of the usuas but with areaname "fixed" to be the name. Only within-Missouri portions. Generates a report in html format showing Mo UAs and UCs with total pop and hu counts. John Blodgett, OSEDA, U. of Missouri Outreach & Extension. Under contract with the Missouri Census Data Center. 12-10-02 ---*/ libname sf32000x '/pub/data/sf32000x'; ods html file='/pub/reports/geography/mouas_and_ucs.html'; proc sql; create view sf32000x.mouaucs as select put(ua,$uauc2k.) as AreaName, * from usuas(keep=sumlev state geocode UA lsadc _numeric_) where sumlev='410' and state='29'; quit; proc format; value $utype 75='Urbanized Area' 76='Urban Cluster'; run; proc report data=sf32000x.mouaucs nowindows; title 'Missouri Urbanized Areas and Urban Clusters as Defined on the 2000 Census SF3 National File'; title2 'Showing Complete Count Population and Household Figures from the 2000 Census'; column ('Urbanized Area / Urban Cluster' ua areaname lsadc) , ('Census 2000 Data' totpop100 tothhs); define ua /'Code' display ; define Areaname/'Name' display; define lsadc /'Type' id format=$type.; define totpop100 /'Population' display format=comma11. ; define tothhs / 'Households' display format=comma9. ; run; ods html close;