Steps for Processing the ACS 5-Year Summary File Data ===================================================== 2012 Data Cycle: Processing Begins in December, 2013 -Create the acs2012/btabs5yr and acs2012/basetbls subdirectories. *******mcdcprofile processing************** -12-30-13: Run cnvt_geo_files5.sas to create acs2012.allgeos_2008_2012. We read from a large file of concatenated geo headers files provided by Glenn. Initially, he created the allgeos5yr data set which we did NOT use (did not have all detail needed). Key statements: filename geos "/pub/data/acs&year./geocodes_&yearm4._&year..txt"; *--Glenn put this file here 12-30-13--; We had to edit the input statement. The @71 spec for reading CBSA was incorrect. Changed to @76. So now it reads ZCTA, PUMA and other geographic codes properly. We added code here to calculate and store the primary State and Stab value for the 860 summaries. (The acsprofile app was not working properly for ZCTAs because we were providing access within state and the 860 data did not have a state code. Sent GR pointers to our $zipstab and $stabfp formats as suggestion for easy way to assing state based on zip). Glenn did rerun of profile conversion step. It appears we have a new version, written late on 12-31. 1-2-14: Problem with ZCTA select on the ACS Profile web app persists. 1-6-14: Renamed Glenn's usmcdcprofiles5yr data set to usmcdcprofiles2008_2012 for consistency with the 1 and 3-year sets he created. Working on new process_mcdcprofiles5yr.sas modeled on process_mcdcprofiles3yr.sas. Had to fix problems with the cbsa-related vars in the allgeso2008_2012 data set prior to running the process_* module. The latter ran with errors. 1-7-14: Substantial edits to mcdcprofiles5yr.sas module to create the array of final 5yr mcdcprofile data sets. 1-8-14: Editing the mscdcprofiles5yr setup. Several geographies have changed this year to summarize different versions of the geos. These are the metro, the pumas, the cds and the slds. So none of these can be matched with sf1 data any more. Added code to mcdcprofiles5yr to handle various new situations such as 410 and 430 sub-UA summaries. Many updated geos (pumas, cds, slds, metros) that can no longer be merged with sf1 data. Coded usbgprofiles to generate the usbgs data set. Submitted the first 2/3 or so to test. (1.) 1-9-14: Adapted the previous newbgvar_formulae.sas (2011 cycle) to create newbgvars.sas . It removes a lot of test clutter and also gets rid of code no longer needed because the variables are now defined on arrival. Much simpler setup now. We shall use the data generated by this (acs.newbgvrs5yr) in final update step in the usbgprofiles setup. Edited invoke_dosets to generate the metadata for all these new 5yr data sets. ===================================================================================================================================== *******base tables processing**************** 12-31-13: Renamed the btabs5yr directory to original_btabs5yr . Will be comparable to the revised_basetbls directory we used in 2011. (then created a new, empty, btabs5yr directory). Edited the gen_tablevars.sas setup for 2012. This one just uses proc contents data to create a pair of btabs.btabs5yrmeta and btabs.bgvarsmeta that will be used with symput calls to define key lists of variables or tables. We decided to create a new global parm, &ei, that can be set to e or i to indicate which letter is used in our table-variable naming convention. Last cycle we used "e" but now we are going back to the old standard "i" for consistency. (i.e. we set ei to "i" for this run, which we had to since that was the naming convention used on the input data sets.) We had to rerun this program with a longer length for the vars variable because the tgrp=17_20 variable list exceeded the $4500 length we had before. Edited and ran ustabs5yr_basetbls.sas, which creates a series of enhanced us data sets based on specific geographic levels. Ran the usstcnty set as a test, which worked. Now running the rest of the collection (zctas, pumas, cousubs, places.) 1-2-14: Editing ustabs5yr_basetbls.sas to enhance processing of ZCTAs and keep the PR zipcodes. Considerable updating of this pgm. It runs the coususb and stcnty converts but struggling with the ZCTA because of the state not being assigned on input. ZCTA level convert seems to be good. Now running places. 1-4-14: The convert run went pretty well on 1-2, but we did some set name tweaking in the puma sets (it was saying PUMA 2k, which it no longer is. Also the labels on the MO views were incorrect so we regenerted those. Created a pointer (soft link) Varlabs in btabs5yr that points over to the basetbls/Varlabs directory. Noted that there is at least one table at the end of the 08 group (B08604) that shows up on the Varlabs module but not in the data. (??) Created the revised bg5yr_basetbls.sas setup and ran test for Mo only. Decided to create a new hybrid module bgtract5yr_basetables.sas that combines the processing of the tract and bg-level base tables, replacing the separate modules used last time, by adding another macro layer with a "bgtract" parm that tells the dogeo macro which level it is processing. The 2 converts are very similar. Made progress today but still getting syntax errors. 1-6-14: Continued tweaking and running of the bgtracts5yr_basetbls setup to create the 140 and 150 level summaries by table groups for the US. A struggle because of details, like getting county to be 5 chars instead of 3, and getting around not having Sumlev on the btabsin datasets. The bg convert went all the way to successful completion, albeit with $3 county codes. Fixed that and ran tract conversion. Running both geos (bgtracts5yr_basetbls, %dogeo twice) in final run of the day. Added stmt: drop Sumlevel stusab name . Also added this stmt to the ustabs5yr_basetbls.sas program (that generates all the other 5yr btabs5yr modules) but did not rerun with it. *****acsprofiles_extract web application processing***** 1-8-14: Created test versions of acsmcdcprofiles_extract_menu.sas and acsmcdcprofiles_extract.sas in /pub/websas/test . Using the current modules of the same names in /pub/websas as templates, of course. Looked at, but decided there was no need to edit the acsprofile_template.html file. Ran a set of successful tests of these new modules. 1-11-14: Did an edit on the acsprofile.template.html file, adding a section for the S10A table, new for 2012. Fixed a bug in the acsmcdcprofiles_extract.sas module so that it could select S10 without selecting S1. Changed all occurrences of test.acsmcdcprofile to websas.acsmcdcprofiles in the test version of the extract_menu.sas module, and saved both the test sas modules to websas within a few seconds of each other - transforming the test modules to production. Prior to this I created a .zip module with the 2 modules from 2011 (in case we need to back out). 1/15/2014 Coded update_sld_names.sas in acs2012/Tools to edit Areaname variables on all 5yr data sets with 610 and 620 level summaries, replacing (2010) with (2012) for the SLDs. (Special edit for this cycle only.) The sets we recreated (and re-indexed) : -rw-rw-r-- 1 blodgettj mcdc 3.4K Jan 15 11:07 Contents -rw-rw-r-- 1 blodgettj mcdc 26M Jan 15 10:56 uscdslds5yr.sas7bdat -rw-rw-r-- 1 blodgettj mcdc 224K Jan 15 10:56 uscdslds5yr.sas7bndx -rw-rw-r-- 1 blodgettj mcdc 1.2G Jan 15 10:56 usmcdcprofiles5yralt.sas7bdat -rw-rw-r-- 1 blodgettj mcdc 11M Jan 15 10:56 usmcdcprofiles5yralt.sas7bndx -rw-rw-r-- 1 blodgettj mcdc 2.0G Jan 15 10:55 usmcdcprofiles5yr.sas7bdat -rw-rw-r-- 1 blodgettj mcdc 18M Jan 15 10:55 usmcdcprofiles5yr.sas7bndx -rw-rw-r-- 1 blodgettj mcdc 115M Jan 15 10:50 allgeos2008_2012.sas7bdat -rw-rw-r-- 1 blodgettj mcdc 18M Jan 15 10:50 allgeos2008_2012.sas7bndx -rw-rw-r-- 1 blodgettj mcdc 16K Jan 15 10:40 uscdslds5yralt.sas7bdat -rwxrw---- 1 blodgettj mcdc 2.0G Jan 15 10:33 usmcdcprofiles_2008_2012.sas7bdat -rw-rw-r-- 1 blodgettj mcdc 24M Jan 15 10:24 moslds5yr.sas7bdat moslds5yr was new. Its the mo subset of uscdslds5yr which we used as a test set for our new sas code. 1-16-14: Created a new test.caps10acs.sas module w corresponding caps10acs2012.html test page. Had to run gen_acsvarlist.sas (which we are now doing from the acs/Tools library instead of a new module each cycle) and edit log to create the new aggvarparms2012.sas file. We had to add a new parm to the circaggacs.sas macro so that it knows what acs vintage is being processed and uses that to %include the proper aggvarparmsXXXX.sas module. The whole process was much trickier than expected.