*options obs=100 ; options nocenter ; /*------------------------------------------------ by Jean Roth Mon Jul 2 15:46:02 EDT 2007 This program reads the 2006 National Health Interview Survey 2006 samchild Data File Report errors to jroth@nber.org This program is distributed under the GNU GPL. See end of this file and http://www.gnu.org/licenses/ for details. ----------------------------------------------- */ * The following line should contain the directory where the SAS file is to be stored ; libname library "./"; * The following line should contain the complete path and name of the raw data file. On a PC, use backslashes in paths as in C:\ ; FILENAME datafile pipe "unzip -p /homes/data/nhis/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/NHIS/2006/samchild.exe "; * The following line should contain the name of the SAS dataset ; %let dataset = nhis2006_samchild ; DATA library.&dataset ; INFILE datafile LRECL = 20000 ; attrib rectype length=3 label=""; attrib srvy_yr length=4 label=""; attrib hhx length=$6 label=""; attrib intv_qrt length=3 label=""; attrib assignwk length=3 label=""; attrib fmx length=$2 label=""; attrib fpx length=$2 label=""; attrib wtia_sc length=5 label=""; attrib wtfa_sc length=4 label=""; attrib region length=3 label=""; attrib strat_p length=3 label=""; attrib psu_p length=3 label=""; attrib sex length=3 label=""; attrib hispan_i length=3 label=""; attrib racerpi2 length=3 label=""; attrib mracrpi2 length=3 label=""; attrib mracbpi2 length=3 label=""; attrib age_p length=3 label=""; attrib csrespno length=$2 label=""; attrib csreltiv length=3 label=""; attrib bwgtlb length=3 label=""; attrib bwgtoz length=3 label=""; attrib bwgtmgr length=4 label=""; attrib amr1 length=3 label=""; attrib aodd1 length=3 label=""; attrib add2 length=3 label=""; attrib amr2 length=3 label=""; attrib aodd2 length=3 label=""; attrib condl1 length=3 label=""; attrib condl2 length=3 label=""; attrib condl3 length=3 label=""; attrib condl4 length=3 label=""; attrib condl5 length=3 label=""; attrib condl6 length=3 label=""; attrib condl7 length=3 label=""; attrib condl8 length=3 label=""; attrib condl9 length=3 label=""; attrib condl10 length=3 label=""; attrib cpox length=3 label=""; attrib cpox12mo length=3 label=""; attrib cashmev length=3 label=""; attrib casstill length=3 label=""; attrib cashyr length=3 label=""; attrib casmeryr length=3 label=""; attrib hayf1 length=3 label=""; attrib rallg1 length=3 label=""; attrib dallg1 length=3 label=""; attrib sallg1 length=3 label=""; attrib diarh1 length=3 label=""; attrib anemia1 length=3 label=""; attrib earinf1 length=3 label=""; attrib seize1 length=3 label=""; attrib hayf2 length=3 label=""; attrib rallg2 length=3 label=""; attrib dallg2 length=3 label=""; attrib sallg2 length=3 label=""; attrib diarh2 length=3 label=""; attrib anemia2 length=3 label=""; attrib fhead length=3 label=""; attrib earinf2 length=3 label=""; attrib seize2 length=3 label=""; attrib stutter length=3 label=""; attrib chstatyr length=3 label=""; attrib schdayr1 length=3 label=""; attrib ccold2w length=3 label=""; attrib cintil2w length=3 label=""; attrib chearst length=3 label=""; attrib cvision length=3 label=""; attrib cblind length=3 label=""; attrib ihspeq length=3 label=""; attrib ihmob length=3 label=""; attrib ihmobyr length=3 label=""; attrib probrx length=3 label=""; attrib learnd length=3 label=""; attrib cmhagm15 length=3 label=""; attrib mhiboy2 length=3 label=""; attrib cmhagf15 length=3 label=""; attrib mhigrl2 length=3 label=""; attrib cusualpl length=3 label=""; attrib cplkind length=3 label=""; attrib chcplrou length=3 label=""; attrib chcplknd length=3 label=""; attrib chcchgyr length=3 label=""; attrib chcchghi length=3 label=""; attrib chcdlyr1 length=3 label=""; attrib chcdlyr2 length=3 label=""; attrib chcdlyr3 length=3 label=""; attrib chcdlyr4 length=3 label=""; attrib chcdlyr5 length=3 label=""; attrib chcafyr length=3 label=""; attrib chcafyr1 length=3 label=""; attrib chcafyr2 length=3 label=""; attrib chcafyr3 length=3 label=""; attrib chcafyr4 length=3 label=""; attrib cdnlongr length=3 label=""; attrib chcsyr11 length=3 label=""; attrib chcsyr12 length=3 label=""; attrib chcsyr13 length=3 label=""; attrib chcsyr14 length=3 label=""; attrib chcsyr1 length=3 label=""; attrib chcsyr2 length=3 label=""; attrib chcsyr3 length=3 label=""; attrib chcsyr4 length=3 label=""; attrib chcsyr5 length=3 label=""; attrib chcsyr6 length=3 label=""; attrib chcsyr7 length=3 label=""; attrib chcsyr81 length=3 label=""; attrib chcsyr82 length=3 label=""; attrib chcsyr10 length=3 label=""; attrib chcsyrem length=3 label=""; attrib chpxyr_c length=3 label=""; attrib chernoy2 length=3 label=""; attrib chchyr length=3 label=""; attrib chchmoyr length=3 label=""; attrib chchnoy2 length=3 label=""; attrib chcnoyr2 length=3 label=""; attrib csrgyr length=3 label=""; attrib rsrgnoyr length=3 label=""; attrib cmdlongr length=3 label=""; attrib cshfluyr length=3 label=""; attrib cshflu_m length=3 label=""; attrib cshflu_y length=4 label=""; attrib cspfluyr length=3 label=""; attrib cspflu_m length=3 label=""; attrib cspflu_y length=4 label=""; attrib rscl2_c2 length=3 label=""; attrib rscl2_e2 length=3 label=""; attrib rscl3_e3 length=3 label=""; attrib rscl5_p5 length=3 label=""; attrib rscl5_h5 length=3 label=""; attrib rscl6 length=3 label=""; attrib seediff length=3 label=""; attrib mrvsee length=3 label=""; attrib meddiff length=3 label=""; attrib mrvmed length=3 label=""; attrib medwhy length=3 label=""; attrib tretdiff length=3 label=""; attrib mrvtret length=3 label=""; attrib tretwhr1 length=3 label=""; attrib tretwhr2 length=3 label=""; attrib tretwhr3 length=3 label=""; attrib tretwhr4 length=3 label=""; attrib tretwhr5 length=3 label=""; INPUT @1 rectype 2. @3 srvy_yr 4. @7 hhx $6. @13 intv_qrt 1. @14 assignwk 2. @16 fmx $2. @18 fpx $2. @20 wtia_sc 7. @27 wtfa_sc 6. @33 region 1. @34 strat_p 3. @37 psu_p 2. @39 sex 1. @40 hispan_i 2. @42 racerpi2 2. @44 mracrpi2 2. @46 mracbpi2 2. @48 age_p 2. @50 csrespno $2. @52 csreltiv 2. @54 bwgtlb 2. @56 bwgtoz 2. @58 bwgtmgr 4. @62 amr1 1. @63 aodd1 1. @64 add2 1. @65 amr2 1. @66 aodd2 1. @67 condl1 1. @68 condl2 1. @69 condl3 1. @70 condl4 1. @71 condl5 1. @72 condl6 1. @73 condl7 1. @74 condl8 1. @75 condl9 1. @76 condl10 1. @77 cpox 1. @78 cpox12mo 1. @79 cashmev 1. @80 casstill 1. @81 cashyr 1. @82 casmeryr 1. @83 hayf1 1. @84 rallg1 1. @85 dallg1 1. @86 sallg1 1. @87 diarh1 1. @88 anemia1 1. @89 earinf1 1. @90 seize1 1. @91 hayf2 1. @92 rallg2 1. @93 dallg2 1. @94 sallg2 1. @95 diarh2 1. @96 anemia2 1. @97 fhead 1. @98 earinf2 1. @99 seize2 1. @100 stutter 1. @101 chstatyr 1. @102 schdayr1 3. @105 ccold2w 1. @106 cintil2w 1. @107 chearst 1. @108 cvision 1. @109 cblind 1. @110 ihspeq 1. @111 ihmob 1. @112 ihmobyr 1. @113 probrx 1. @114 learnd 1. @115 cmhagm15 1. @116 mhiboy2 2. @118 cmhagf15 1. @119 mhigrl2 2. @121 cusualpl 1. @122 cplkind 1. @123 chcplrou 1. @124 chcplknd 1. @125 chcchgyr 1. @126 chcchghi 1. @127 chcdlyr1 1. @128 chcdlyr2 1. @129 chcdlyr3 1. @130 chcdlyr4 1. @131 chcdlyr5 1. @132 chcafyr 1. @133 chcafyr1 1. @134 chcafyr2 1. @135 chcafyr3 1. @136 chcafyr4 1. @137 cdnlongr 1. @138 chcsyr11 1. @139 chcsyr12 1. @140 chcsyr13 1. @141 chcsyr14 1. @142 chcsyr1 1. @143 chcsyr2 1. @144 chcsyr3 1. @145 chcsyr4 1. @146 chcsyr5 1. @147 chcsyr6 1. @148 chcsyr7 1. @149 chcsyr81 1. @150 chcsyr82 1. @151 chcsyr10 1. @152 chcsyrem 1. @153 chpxyr_c 1. @154 chernoy2 2. @156 chchyr 1. @157 chchmoyr 2. @159 chchnoy2 2. @161 chcnoyr2 2. @163 csrgyr 1. @164 rsrgnoyr 2. @166 cmdlongr 1. @167 cshfluyr 1. @168 cshflu_m 2. @170 cshflu_y 4. @174 cspfluyr 1. @175 cspflu_m 2. @177 cspflu_y 4. @181 rscl2_c2 1. @182 rscl2_e2 1. @183 rscl3_e3 1. @184 rscl5_p5 1. @185 rscl5_h5 1. @186 rscl6 1. @187 seediff 1. @188 mrvsee 1. @189 meddiff 1. @190 mrvmed 1. @191 medwhy 1. @192 tretdiff 1. @193 mrvtret 1. @194 tretwhr1 1. @195 tretwhr2 1. @196 tretwhr3 1. @197 tretwhr4 1. @198 tretwhr5 1. ; proc print data=library.nhis2006_samchild (obs=6); proc contents data=library.nhis2006_samchild; /* Copyright 2007 shared by the National Bureau of Economic Research and Jean Roth National Bureau of Economic Research. 1050 Massachusetts Avenue Cambridge, MA 02138 jroth@nber.org This program and all programs referenced in it are free software. You can redistribute the program or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */