1 (STF4) 0 STF4 ---- To represent all the data for one geographic area on STF4 requires 44 IBM logical records of 1956 bytes each, or a total of 86,064 bytes. This does not include the additional 37,000 or so bytes required to repeat many of the tables for a varying number of race/ spanish origin/ancestry subpopulations. This obviously makes for an enormous file-- so large that many people refuse to deal with it. The sheer size and the existence of multiple record types (STF4 has A and B records similar to STF2) requires special handling when converting to SAS. Even when the file is broken into four pieces, one of the 4 datasets (the A records for housing) comes very close to the SAS limits for number of variables and total length of an observation in a SAS dataset. If you try to load the HA dataset onto a disk with a track size of less that than 19,000 bytes it will not fit. This should not be much of a problem, however, since it is very unlikely that you would ever need to access all of the data items in one run, so you can always use the KEEP or DROP options on your SET statement or DATA= specification to limit the variables to be processed. To save tape space we do not create any level 1 datasets for STF4. We do, however, split the original file into 4 separate sequential ("level 0") files, which are then converted into 4 corre- sponding level 2 databases. These remarks apply equally to STF4A and STF4B. We do not currently have a setup for processing STF4C. FILE 4A ------- Level 0 Files: DSN : ++CATNAMES.STF4A..PA.L0 Pop. A Records Only ++CATNAMES.STF4A..PB.L0 Pop. B Records Only ++CATNAMES.STF4A..HA.L0 Housing A Records Only ++CATNAMES.STF4A..HB.L0 Housing B Records Only A conversion setup that is provided with SCADS shows how these 4 sequential files can be created from the original sequential file as released by the Census Bureau. Your shop may want to save tape and processing costs by being selective during this initial copy- and-split phase. Many shops may want to exclude B records for all but just a few racial/ethnic groups and hence will want to insert a subsetting IF statement referencing RECOIND in this initial copy step. You should check to see if your STF4 files include all the B records originally provided. Level 2 Data Libraries : DSN : ++CATNAME.STF4A..PA.L2 Pop A Records ++CATNAME.STF4A..PB.L2 Pop B Records ++CATNAME.STF4A..HA.L2 Housing A Records ++CATNAME.STF4A..HB.L2 Housing B Records Each of these 4 data libraries has the same SAS datasets representing the same geographic summary levels. They differ in that each data library's datasets contain different tables. As with STF2, we have adopted a special naming convention for STF4 table items. Instead of the usual TxIy convention we replace the 'T' with the subfile code (PA, PB, HA, HB.) Thus, to access the first item in the first table on any PA dataset use the variable name PA1I1. The name HB7I3 refers to the 3rd item in the 7th table of any HB dataset. This naming convention allows merging of datasets from the 4 databases without need to RENAME any variables. When doing so, however, be sure to restrict the number of variables being accessed by using KEEP or DROP options for the datasets in the MERGE dtatement. Failing to do so will cause the step to fail because of too many variables and/or too many bytes (over 32K) in the SAS program data vector. The datasets are : SMSAS Complete SMSA summaries. Also a summary for "tracted remainder of state" (SMSA=9999). COUNTIES Within SMSA's (may not be complete counties in New England.) There are also summaries for the tracted portions of counties outside SMSA's (SMSA=9999). PLACES Within SMSA and county, including "remainder of county" pseudo-places (PLACE=9999). Only central cities and places of 10,000+ popula- tion are summarized. TRACTS Only complete tract summaries are kept. We keep SUMRYLVL=24 records with PARTTRCT='2' (tract not split) and SUMRYLVL=32 (complete tract summaries for split tracts) records. Untracted remainders of SMSA/COUNTY are summarized with pseudo-tract codes of 9999.99. NOTES: For A records there is a series of flag fields, PBSUM00 thru PBSUM38 or HBSUM00 thru HBSUM38, which indicate whether the B record for a racial/ethnic subgroup has been suppressed. A value of '1' for PBSUM01 indicates the presence of a B summary record for the white subpopulation, while a value of '0' indi- cates that the record is not present. These 39 flags have been strung together into 39-character fields named PBFLAGS (only on PA datasets) and HBFLAGS (only on HA datasets.) You can use the SUBSTR function to determine the value of any particular flag. For example: IF SUBSTR(PBFLAGS,3,1)='1' then /* B SUMMARY RECORD FOR BLACK SUBPOP (RECOIND=2) IS PRESENT */... ; The conversion program also created a new variable, NPBRECS (NHBRECS on HA datasets), which is a count of the number of B records that were present for the geographic area. These vari- ables are calculated by simply counting the number of 1's among the PBSUM(HBSUM) flags, and do not take into account any selecting out of type B records. The appropriate suppression flags are saved on each dataset. None of these datasets required any aggregation. FILE 4B ------- This file is identical in structure to 4A. We again create 4 "level 0" sequential files for the 4 table types (PA, PB, HA, HB) and 4 corresponding "level 2" data libraries. The DSN naming convention is: DSN=++CATNAME.STF4B...L2, where is either PA, PB, HA, or HB. The datasets on each of these data libraries are as follows: STATES Complete state summary followed by summaries for various urban/rural and SMSA component subareas. SCSAS Complete SCSA/state summaries followed by urban, rural and rural farm component summaries. SMSAS Complete SMSA/state summaries followed by urban, rural and rural farm component summaries. URBAREAS Urbanized area/state summaries. COUNTIES Complete county summaries followed by rural and rural farm component summaries. MCDS MCD/CCD summaries. PLACES Complete place (within state) summaries for places of 2500 population. For "extended cities" an urban portion summary follows. (Unlike our STF3A datasets, this PLACES dataset does not contain a COUNTY variable.) INDANVS Summary levels 30 (American Indian Reservation/ Alaska Native Village within state) and 31 (American Indian Reservation within county.) This dataset will be empty for many states (including Missouri.) FILE 4C ------- File 4C is not currently supported in SCADS. The conversion setup for STF4B could be rather easily modified to work for the C file, however.