Specifications for Creating the stf803x2 Filetype ================================================= jgb, 2/7/2006 1:45PM Basically, the stf803x2 filetype is to the current stf803x filetype as stf903x2 is to stf903x. As such, it is to the stf803 filetype as stf903x2 is to the stf903 filetype. It is a new version of an old favorite that will be created using our new methodology (invoking the %dovar macro so that we create metadata and actual data using shared code to insure consistency.) We also want to make sure we choose variables that are compatible with our stf903x2 and sf32000x data so that we can create trend reports. The templates for creating the new filetype are to be found in: /pub/data/stf903x2/Tools/invoke_dovars.sas -- this is the heart of the new filetype. This module serves as a template for how we create such beasts. Use it to model form almost entirely and actual content to the degree where it makes sense. By this I mean that we want the variables from 1980 to be as comparable to the one used for the 1990 (and 2000) extracts as possible. There are a lot of cases where it is not possible because the data were just not collected/tabulated the same way. We want to create a table structure similar to our other standard extract types (stf903x2 and sf32000x, e.g.). /pub/data/stf903x2/Tools/moilkscnvts_stf903x2.sas -- this is a model of an actual data conversion run which, or course, amounts to pointing to various datasets of type stf803 and creating those of type stf803x2. Each dataset conversion will involve the include'ing of the invoke_dovars.sas code. One of the invocations will be in meta mode so that it creates the variables metadata set as well as Variables.pdf and Variables.html in the stf803x3 directory. /pub/data/sascode/stf803x.sas -- this is the file we used to generate the stf803x filetype datasets. We will undoubtedly be using a lot of the same variables in our new filetype so we definitely want to tap into this source to save us re-inventing things. Remember, we no longer do it with simple assignment statements as in the past, but the critical definition parms used in the invoke_dovars module can mostly be cut and pasted from the right side of assignment statements in this module. Things we want to change are things like variable names (we no longer have the 8-character name limit) and better, more descriptive and mixed-case labels. The way we do percent variables is radically different. We did not do percents for all variables on stf803x but we pretty much will with the new stf803x2 type. Once we have the module debugged we'll want to create stf803x2 datasets pretty much corresponding to each of the datasets in the stf803 directory. (Note that we recently ran a setup called migrate_plus from the stf803/Tools directory which did some significant enhancement of our old stf803 datasets. For example, we now have SumLev and Geocode variables on most (all?) datasets. This will make a big difference in terms of the amount of extra work we have to do with geographic identifiers in the coding of our new conversion code. IMPORTANT NOTE: All jobs should be run using sas Version 9. All jobs related to this task MUST be coded and stored in /pub/data/stf903x2/Tools, and must be run in "interactive batch" mode so that we have .log files to document them. The invoke_dovars.sas module should be edited via ultraedit using FTP input/ouput and should be tested from Unix by batch-submitting test invocation modules (containing %include statements that reference the invoke_dovars module). Target completion date: 2/21/06 (for generating the datasets and metadata files). Seek assistance from me or from Evelyn. She has the most experience of anyone in actually coding such things. Once we have the data sets created we'll begin work on a websas module for displaying these data as profiles, driven from the metadata. Modeled after websas.dp3_2k.sas . jgb