1 (STF2) 0 STF2 ---- This file, like its sample-data counterpart, STF4, presents some special problems because of its exceptionally large records, and because of its multiple record types. While converting to SAS hasn't solved these problems entirely, it has made things a lot simpler. The important thing to remember when accessing STF2 is that there are always two data entities for each file level: one for type A records and one for type B records. If you are not familiar with the concepts of these two record types it is essential that you read the discussion beginning on page 13 of the STF2 technical documentation. FILE 2A ------- File Universe : The tracted portion of 1 state. Level 1 Data Library : DSN : ++CATNAME.STF2A..L1 (2 datasets: 1 for A records, 1 for B records.) SET NAMES : STF2AAL1 (A Records) STF2ABL1 (B Records) SUMRYLVLs : 08 SMSA/STATE. A SMSA='9999' record summarizes tracted remainder of state. 17 COUNTY/SMSA. In New England these may be partial counties. Since SMSA may also be '9999', we also get summaries for tracted portions of counties outside SMSA's. 23 PLACE within county. Summaries for split places of 10,000+ population and for pseudo- place 9999-remainder of county. 24 Census tract within place or place segment or remainder of tracted county. For untracted portions of SMSA's a tract code of 9999.99 is used. 32 Complete tracts. These summaries are provided only for tracts having more than one level 24 summary. NOTES: A different naming convention for table cells is used for STF2 datasets. Instead of TxIy format, we use TAxIy and TBxIy to distinguish "A Record" table items from "B Record" table items. Carefully note the file universe here. You will not find data for any untracted areas. The suppression flags SUPFLG01 through SUPFLG06 are saved on the level 1 dataset. The two level 1 datasets were created in a single SAS data step. In this step the geographic (non-table) data (except for RECOIND) were read only once per geographic area, i.e. these codes were only INPUT when RECOIND=' ' was true, and then retained for all subsequent B records. This guarantees geo- graphic consistency between the 2 datasets. The BSUM00 through BSUM27 flag fields are not read nor saved; these are the flags that indicate (on the type A record) which particular type B records can be expected to follow. The STF2ABL1 dataset can contain up to 7 records per geo- graphic area with different values of RECOIND. Level 2 Data Libraries : DSNs : ++CATNAME.STF2A.A.L2 (A Records) ++CATNAME.STF2A.B.L2 (B Records) (Datasets are the same for both data libraries with regard to their names and areas summarized.) SMSAS Copy of 08 summary observations from level 1. TRACTS Complete tract summaries from selected level 24 and level 32 summary records, sorted by SMSA and tract (with tracts outside SMSA's last.) NOTES: No county or place summaries are included at level 2. STFs 2 and 4 are the only ones that contain complete census tract summaries (requiring no aggregation.) FILE 2B ------- File Universe : 1 State. Level 1 Data Library : DSN : ++CATNAME.STF2B..L1 (2 datasets: 1 for A records, 1 for B records.) SET NAMES : STF2BAL1 (A Records) STF2BBL1 (B Records) SUMRYLVLs : 04 STATES. Repeated for up to 16 categories based on urban/rural and inside/outside SMSA's (URBARURL/SMSACOM). 06 SCSA/STATE. Urban and rural components also summarized. 08 SMSA/STATE. Urban and rural components also summarized. 10 Urbanized area/STATE. 11 COUNTIES. Total and "rural portion" summaries. 12 MCD/CCD. 27 PLACE/STATE. Only for places of 1,000+ population. Some places contain "urban portion" summaries (check URBARURL flag to filter these out if not wanted.) 30 American Indian Reservation/Alaska Native Village (INDANV)--where applicable. 31 INDANV/COUNTY. Similar to level 30 but for American Indian Reservations within counties. NOTES: See notes for file 2A. Level 2 Data Library : DSNs : ++CATNAME.STF2B.A.L2 (A Records) ++CATNAME.STF2B.B.L2 (B Records) (Datasets are the same for both these data libraries with regard to their names and the areas summarized.) STATES Complete state summaries only, i.e. records for urban/rural and inside/outside SMSA's not included. COUNTIES Complete county summaries only. MCDS Level 12 summaries. PLACES Complete places only (1,000+ pop.) NOTES: Not all possible geographic levels are represented on the level 2 database. Installations doing a lot of work at the SCSA/STATE, UA/STATE or INDANV/STATE level might want to alter the STF2B conversion to include these. SMSA/STATE summaries were not kept because they are already on STF2A. FILE 2C ------- This file is not currently supported in SCADS.