*options obs=100 ; options nocenter ; /*------------------------------------------------ by Jean Roth Wed Nov 19 11:19:07 EST 2008 This program reads the 2003 *U.S. Denominator Linked Birth Infant Death Birth Cohort Data 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 "bzcat /homes/data/lbid/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/cohortlinkedus/LinkCO03USDen.dat.bz2 "; FILENAME datafile pipe "unzip -p /homes/data/lbid/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/cohortlinkedus/LinkCO03US.zip LinkCO03USDen.dat "; * The following line should contain the name of the SAS dataset ; %let dataset = library.linkco2003us_den; DATA &dataset ; INFILE datafile LRECL = 20000 ; attrib revision length=$1 label="Revision U,R"; attrib laterec length=3 label="Late Record Flag U,R"; attrib dob_yy length=4 label="Birth Year U,R"; attrib dob_mm length=3 label="Birth Month U,R"; attrib dob_wk length=3 label="Birth Weekday U,R"; attrib ostate length=$2 label="Occurrence State U,R"; attrib xostate length=$2 label="Expanded Occurrence State U,R"; attrib ocntyfips length=3 label="Occurrence FIPS County U,R"; attrib ocntypop length=3 label="Occurence County Population U,R"; attrib ubfacil length=3 label="Birth Place U,R"; attrib bfacil3 length=3 label="Birth Place Recode U,R"; attrib umagerpt length=3 label="Mother's Reported Age U"; attrib mage_impflg length=3 label="Mother's Age Imputated Flag U,R"; attrib mage_repflg length=3 label="Reported Age of Mother Flag U,R"; attrib mager41 length=3 label="Mother's Age Recode 41 U,R"; attrib mager14 length=3 label="Mother's Age Recode 14 U,R"; attrib mager9 length=3 label="Mother's Age Recode 9 U,R"; attrib umbstate length=$2 label="Mother's Birth State U,R"; attrib mbstate_rec length=3 label="Mother's Birth State Recode U,R"; attrib xmrstate length=$2 label="Expanded State of Residence of Mother U,R"; attrib mrstatefips length=$2 label="Mother's Residence FIPS State U,R"; attrib mrcntyfips length=3 label="Mother's FIPS County of Residence (FIPS) U,R"; attrib mrcityfips length=4 label="Mother's Place of Residence (FIPS) U,R"; attrib cmsa length=3 label="Consolidated Metropolitan Statistical Area U,R "; attrib msa length=4 label="Metropolitan Statistical Area U,R "; attrib msa_pop length=$1 label="Population of Statistical Area U,R "; attrib rcnty_pop length=$1 label="Population of Residence County U,R "; attrib rcity_pop length=$1 label="Population of Residence City U,R "; attrib metrores length=$1 label="Metropolitan Residence County U,R"; attrib rectype length=3 label="Record Type U,R"; attrib restatus length=3 label="Resident Status U,R"; attrib mbrace length=3 label="Mother's Bridged Race U,R "; attrib mrace length=3 label="Mother's Race U "; attrib mracerec length=3 label="Mother's Race Recode U,R"; attrib mraceimp length=$1 label="Mother's Race Imputed Flag U,R "; attrib umhisp length=3 label="Mother's Hispanic Origin U,R (f_morigin rep flag)"; attrib mracehisp length=3 label="Mother's Race/Hispanic Origin U,R (f_morigin rep flag)"; attrib mar length=3 label="Mother's Marital Status U,R (* rep flag)"; attrib mar_imp length=3 label="Mother's Marital Status Imputed Flag U,R"; attrib meduc length=3 label="Mother's Education R (f_meduc rep flag)"; attrib umeduc length=3 label="Mother's Education U (f_med rep flag)"; attrib meduc_rec length=3 label="Mother's Education Recode U (f_med rep flag)"; attrib fagerpt_flg length=3 label="Father's Reported Age Used U,R"; attrib fagerpt length=3 label="Father's Reported Age U,R"; attrib ufagecomb length=3 label="Father's Combined Age U"; attrib fagerec11 length=3 label="Father's Age Recode 11 U,R"; attrib fbrace length=3 label="Father's Bridged Race U,R "; attrib fracerec length=3 label="Father's Race Recode U,R"; attrib ufhisp length=3 label="Father's Hispanic Origin U,R (f_forigin rep flag)"; attrib fracehisp length=3 label="Father's Race/Hispanic Origin U,R (f_forigin rep flag)"; attrib frace length=3 label="Father's Race U "; attrib priorlive length=3 label="Prior Births Now Living U,R"; attrib priordead length=3 label="Prior Births Now Dead U,R"; attrib priorterm length=3 label="Prior Other Terminations U,R"; attrib lbo length=3 label="Live Birth Order U,R"; attrib lbo_rec length=3 label="Live Birth Order Recode U,R"; attrib tbo length=3 label="Total Birth Order U,R"; attrib tbo_rec length=3 label="Total Birth Order Recode U,R"; attrib dllb_mm length=3 label="Date of Last Live Birth - Month U,R"; attrib dllb_yy length=4 label="Date of Last Live Birth - Year U,R"; attrib precare length=3 label="Month Prenatal Care Began R (f_mpcb rep flag)"; attrib precare_rec length=3 label="Month Prenatal Care Began Recode R (f_mpcb rep flag)"; attrib mpcb length=3 label="Month Prenatal Care Began U (f_mpcb_u rep flag)"; attrib mpcb_rec6 length=3 label="Month Prenatal Care Began Recode 6 U (f_mpcb_u rep flag)"; attrib mpcb_rec5 length=3 label="Month Prenatal Care Began Recode 5 U (f_mpcb_u rep flag)"; attrib uprevis length=3 label="Number of Prenatal Visits U,R"; attrib previs_rec length=3 label="Number of Prenatal Visits Recode U,R"; attrib wtgain length=3 label="Weight Gain U,R (f_wtgain rep flag)"; attrib wtgain_rec length=3 label="Weight Gain Recode U,R (f_wtgain rep flag)"; attrib cig_1 length=3 label="Cigarettes 1st Trimester R "; attrib cig_2 length=3 label="Cigarettes 2nd Trimester R "; attrib cig_3 length=3 label="Cigarettes 3rd Trimester R "; attrib tobuse length=3 label="Tobacco Use U (f_tobac rep flag)"; attrib cigs length=3 label="Cigarettes Per Day U"; attrib cig_rec6 length=3 label="Cigarettes Recode U"; attrib cig_rec length=$1 label="Cigarettes Recode R"; attrib alcohol length=3 label="Alcohol Use U (f_alcol rep flag)"; attrib drinks length=3 label="Drinks Per Week U (f_alcol rep flag)"; attrib drinks_rec length=3 label="Drinks Recode U (f_alcol rep flag) "; attrib urf_anemia length=3 label="Anemia U "; attrib urf_card length=3 label="Cardiac U"; attrib urf_lung length=3 label="Acute or Chronic Lung Disease U"; attrib urf_diab length=3 label="Diabetes U,R"; attrib urf_gen length=3 label="Genital Herpes U"; attrib urf_hydra length=3 label="Hydramnios/Oligohydramnios U"; attrib urf_hemo length=3 label="Hemoglobinopathy U"; attrib urf_chyper length=3 label="Chronic Hypertension U,R"; attrib urf_phyper length=3 label="Pregnancy Associated Hypertension U,R"; attrib urf_eclam length=3 label="Eclampsia U,R"; attrib urf_incerv length=3 label="Incompetent cervix U"; attrib urf_pre4000 length=3 label="Previous infant 4000+ Grams U"; attrib urf_preterm length=3 label="Previous Preterm or Small for Gestation U"; attrib urf_renal length=3 label="Renal disease U"; attrib urf_rh length=3 label="Rh sensitization U"; attrib urf_uterine length=3 label="Uterine bleeding U"; attrib urf_other length=3 label="Other Medical Risk Factors U"; attrib uop_amnio length=3 label="Amniocentesis U"; attrib uop_monit length=3 label="Electronic Fetal Monitoring U"; attrib uop_induc length=3 label="Induction of labor U,R"; attrib uop_stiml length=3 label="Stimulation of labor U"; attrib uop_tocol length=3 label="Tocolysis U,R"; attrib uop_ultra length=3 label="Ultrasound U"; attrib uop_other length=3 label="Other Obstetric Procedures U"; attrib uld_febr length=3 label="Febrile U"; attrib uld_meco length=3 label="Meconium U,R"; attrib uld_ruptr length=3 label="Premature Rupture of Membrane U"; attrib uld_abrup length=3 label="Abruptio placenta U"; attrib uld_prepla length=3 label="Placenta previa U"; attrib uld_excbl length=3 label="Other Excessive Bleeding U"; attrib uld_seiz length=3 label="Seizures During Labor U "; attrib uld_precip length=3 label="Precipitous labor U,R"; attrib uld_prolg length=3 label="Prolonged Labor U"; attrib uld_dysfn length=3 label="Dysfunctional Labor U"; attrib uld_breech length=3 label="Breech U,R"; attrib uld_cephal length=3 label="Cephalopelvic Disproportion U"; attrib uld_cord length=3 label="Cord Prolapse U"; attrib uld_anest length=3 label="Anesthetic Complications U"; attrib uld_distr length=3 label="Fetal Distress U"; attrib uld_other length=3 label="Other Complications U"; attrib ume_vag length=3 label="Vaginal U,R"; attrib ume_vbac length=3 label="Vaginal after C-Section U,R"; attrib ume_primc length=3 label="Primary C-Section U,R"; attrib ume_repec length=3 label="Repeat C-Section U,R"; attrib ume_forcp length=3 label="Forceps U,R "; attrib ume_vac length=3 label="Vacuum U,R"; attrib dmeth_rec length=3 label="Delivery Method Recode U,R"; attrib attend length=3 label="Attendant U,R"; attrib apgar5 length=3 label="Five Minute Apgar Score U,R (f_apgar5 rep flag)"; attrib apgar5r length=3 label="Five Minute Apgar Recode U,R (f_apgar5 rep flag)"; attrib dplural length=3 label="Plurality U,R"; attrib imp_plur length=3 label="Plurality Imputed U,R"; attrib sex length=$1 label="Sex of Infant U,R"; attrib imp_sex length=3 label="Imputed Sex "; attrib dlmp_mm length=3 label="Last Normal Menses - Month U,R"; attrib dlmp_dd length=3 label="Last Normal Menses - Day U,R"; attrib dlmp_yy length=4 label="Last Normal Menses - Year U,R"; attrib estgest length=3 label="Obstetric/Clinical Gestation Est. U,R (f_clinest rep flag)"; attrib combgest length=3 label="Gestation - Detail in Weeks U,R"; attrib gestrec10 length=3 label="Gestation Recode 10 U,R"; attrib gestrec3 length=3 label="Gestation Recode 3 U,R"; attrib obgest_flg length=3 label="Clinical Estimate of Gestation Used Flag U,R "; attrib gest_imp length=3 label="Gestation Imputed Flag U,R"; attrib dbwt length=4 label="Birth Weight - Detail in Grams U,R"; attrib bwtr12 length=3 label="Birth Weight Recode 12 U,R"; attrib bwtr4 length=3 label="Birth Weight Recode 4 U,R"; attrib bwtimp length=3 label="Imputed Birthweight Flag U"; attrib uab_anem length=3 label="Anemia U"; attrib uab_injury length=3 label="Birth Injury U"; attrib uab_alcoh length=3 label="Fetal Alcohol Syndrome U"; attrib uab_hyal length=3 label="Hyaline Membrane Disease U"; attrib uab_mecon length=3 label="Meconium Aspiration Syndrome U"; attrib uab_venl30 length=3 label="Assisted Ventilation < 30 min U"; attrib uab_ven30m length=3 label="Assisted Ventilation >= 30 min U"; attrib uab_nseiz length=3 label="Seizures U"; attrib uab_other length=3 label="Other Abnormal Conditions U"; attrib uca_anen length=3 label="Anencephalus U,R"; attrib uca_spina length=3 label="Spina bifida/Meningocele U,R"; attrib uca_hydro length=3 label="Hydrocephalus U"; attrib uca_micro length=3 label="Microcephalus U"; attrib uca_nerv length=3 label="Other Central Nervous System Anomalies U"; attrib uca_heart length=3 label="Heart malformations U"; attrib uca_circ length=3 label="Other Circulatory/Respiratory Anomalies U"; attrib uca_rectal length=3 label="Rectal Atresia/Stenosis U"; attrib uca_trach length=3 label="Tracheo-Esophageal Fistula U"; attrib uca_ompha length=3 label="Omphalocele/Gastroschisis U,R"; attrib uca_gastro length=3 label="Other Gastrointestinal Anomalies U"; attrib uca_genital length=3 label="Malformed Genitalia U "; attrib uca_renal length=3 label="Renal Agenesis U"; attrib uca_urogen length=3 label="Other Urogenital Anomalies U"; attrib uca_cleftlp length=3 label="Cleft Lip/Palate U,R"; attrib uca_adactyly length=3 label="Polydactyly/Syndactyly/Adactyly U"; attrib uca_clubft length=3 label="Club Foot U"; attrib uca_hernia length=3 label="Diaphragmatic Hernia U"; attrib uca_muscu length=3 label="Other Musculoskeletal Anomalies U"; attrib uca_downs length=3 label="Downs Syndrome U,R"; attrib uca_chromo length=3 label="Other Chromosomal Anomalies U"; attrib uca_other length=3 label="Other Congenital Anomalies U"; attrib f_morigin length=3 label="Origin of Mother U,R"; attrib f_forigin length=3 label="Origin of Father U,R"; attrib f_meduc length=3 label="Education of Mother R"; attrib f_clinest length=3 label="Clinical Estimate of Gestation U,R"; attrib f_apgar5 length=3 label="5 - minute Apgar U,R"; attrib f_tobaco length=3 label="Tobacco use R"; attrib f_med length=3 label="Mother's Education U"; attrib f_wtgain length=3 label="Weight gain U,R"; attrib f_alcol length=3 label="Alcohol use U"; attrib f_api length=3 label="API codes U"; attrib f_tobac length=3 label="Tobacco use U"; attrib f_mpcb length=3 label="Month Prenatal Care Began R"; attrib f_mpcb_u length=3 label="Month Prenatal Care Began U"; attrib mrace1e length=$3 label="Mother's Race Edited R"; attrib mrace2e length=$3 label="Mother's Race Edited R"; attrib mrace3e length=$3 label="Mother's Race Edited R"; attrib mrace4e length=$3 label="Mother's Race Edited R"; attrib mrace5e length=$3 label="Mother's Race Edited R"; attrib mrace6e length=$3 label="Mother's Race Edited R"; attrib mrace7e length=$3 label="Mother's Race Edited R"; attrib mrace8e length=$3 label="Mother's Race Edited R"; attrib frace1e length=$3 label="Father's Race Edited R"; attrib frace2e length=$3 label="Father's Race Edited R"; attrib frace3e length=$3 label="Father's Race Edited R"; attrib frace4e length=$3 label="Father's Race Edited R"; attrib frace5e length=$3 label="Father's Race Edited R"; attrib frace6e length=$3 label="Father's Race Edited R"; attrib frace7e length=$3 label="Father's Race Edited R"; attrib frace8e length=$3 label="Father's Race Edited R"; attrib matchs length=3 label="Match Status U,R"; attrib aged length=3 label="Age at Death in Days "; attrib ager5 length=3 label="Infant age recode 5"; attrib ager22 length=3 label="Infant age recode 22"; attrib manner length=3 label="Manner of Death"; attrib dispo length=$1 label="Method of Disposition"; attrib autopsy length=$1 label="Autopsy"; attrib place length=3 label="Place of injury for causes W00-Y34"; attrib ucod length=$4 label="ICD Code (10th Revision)"; attrib ucodr130 length=3 label="130 Infant Cause Recode"; attrib recwt length=5 label="Record Weight"; INPUT @7 revision $1. @9 laterec 1. @15 dob_yy 4. @19 dob_mm 2. @29 dob_wk 1. @30 ostate $2. @32 xostate $2. @37 ocntyfips 3. @40 ocntypop 1. @42 ubfacil 1. @59 bfacil3 1. @77 umagerpt 2. @87 mage_impflg 1. @88 mage_repflg 1. @89 mager41 2. @91 mager14 2. @93 mager9 1. @96 umbstate $2. @100 mbstate_rec 1. @107 xmrstate $2. @109 mrstatefips $2. @114 mrcntyfips 3. @120 mrcityfips 5. @125 cmsa 2. @127 msa 4. @131 msa_pop $1. @132 rcnty_pop $1. @133 rcity_pop $1. @135 metrores $1. @137 rectype 1. @138 restatus 1. @139 mbrace 2. @141 mrace 2. @143 mracerec 1. @144 mraceimp $1. @148 umhisp 1. @149 mracehisp 1. @153 mar 1. @154 mar_imp 1. @155 meduc 1. @156 umeduc 2. @158 meduc_rec 1. @175 fagerpt_flg 1. @176 fagerpt 2. @184 ufagecomb 2. @186 fagerec11 2. @188 fbrace 2. @191 fracerec 1. @195 ufhisp 1. @196 fracehisp 1. @199 frace 2. @204 priorlive 2. @206 priordead 2. @208 priorterm 2. @210 lbo 2. @212 lbo_rec 1. @215 tbo 2. @217 tbo_rec 1. @220 dllb_mm 2. @222 dllb_yy 4. @245 precare 2. @247 precare_rec 1. @256 mpcb 2. @258 mpcb_rec6 1. @259 mpcb_rec5 1. @270 uprevis 2. @272 previs_rec 2. @276 wtgain 2. @278 wtgain_rec 1. @284 cig_1 2. @286 cig_2 2. @288 cig_3 2. @290 tobuse 1. @291 cigs 2. @293 cig_rec6 1. @294 cig_rec $1. @295 alcohol 1. @296 drinks 2. @298 drinks_rec 1. @328 urf_anemia 1. @329 urf_card 1. @330 urf_lung 1. @331 urf_diab 1. @332 urf_gen 1. @333 urf_hydra 1. @334 urf_hemo 1. @335 urf_chyper 1. @336 urf_phyper 1. @337 urf_eclam 1. @338 urf_incerv 1. @339 urf_pre4000 1. @340 urf_preterm 1. @341 urf_renal 1. @342 urf_rh 1. @343 urf_uterine 1. @344 urf_other 1. @355 uop_amnio 1. @356 uop_monit 1. @357 uop_induc 1. @358 uop_stiml 1. @359 uop_tocol 1. @360 uop_ultra 1. @361 uop_other 1. @374 uld_febr 1. @375 uld_meco 1. @376 uld_ruptr 1. @377 uld_abrup 1. @378 uld_prepla 1. @379 uld_excbl 1. @380 uld_seiz 1. @381 uld_precip 1. @382 uld_prolg 1. @383 uld_dysfn 1. @384 uld_breech 1. @385 uld_cephal 1. @386 uld_cord 1. @387 uld_anest 1. @388 uld_distr 1. @389 uld_other 1. @395 ume_vag 1. @396 ume_vbac 1. @397 ume_primc 1. @398 ume_repec 1. @399 ume_forcp 1. @400 ume_vac 1. @401 dmeth_rec 1. @408 attend 1. @415 apgar5 2. @417 apgar5r 1. @423 dplural 1. @425 imp_plur 1. @436 sex $1. @437 imp_sex 1. @438 dlmp_mm 2. @440 dlmp_dd 2. @442 dlmp_yy 4. @446 estgest 2. @451 combgest 2. @453 gestrec10 2. @455 gestrec3 1. @456 obgest_flg 1. @457 gest_imp 1. @467 dbwt 4. @471 bwtr12 2. @473 bwtr4 1. @475 bwtimp 1. @483 uab_anem 1. @484 uab_injury 1. @485 uab_alcoh 1. @486 uab_hyal 1. @487 uab_mecon 1. @488 uab_venl30 1. @489 uab_ven30m 1. @490 uab_nseiz 1. @491 uab_other 1. @504 uca_anen 1. @505 uca_spina 1. @506 uca_hydro 1. @507 uca_micro 1. @508 uca_nerv 1. @509 uca_heart 1. @510 uca_circ 1. @511 uca_rectal 1. @512 uca_trach 1. @513 uca_ompha 1. @514 uca_gastro 1. @515 uca_genital 1. @516 uca_renal 1. @517 uca_urogen 1. @518 uca_cleftlp 1. @519 uca_adactyly 1. @520 uca_clubft 1. @521 uca_hernia 1. @522 uca_muscu 1. @523 uca_downs 1. @524 uca_chromo 1. @525 uca_other 1. @569 f_morigin 1. @570 f_forigin 1. @571 f_meduc 1. @573 f_clinest 1. @574 f_apgar5 1. @575 f_tobaco 1. @647 f_med 1. @648 f_wtgain 1. @649 f_alcol 1. @650 f_api 1. @667 f_tobac 1. @668 f_mpcb 1. @669 f_mpcb_u 1. @683 mrace1e $3. @686 mrace2e $3. @689 mrace3e $3. @692 mrace4e $3. @695 mrace5e $3. @698 mrace6e $3. @701 mrace7e $3. @704 mrace8e $3. @718 frace1e $3. @721 frace2e $3. @724 frace3e $3. @727 frace4e $3. @730 frace5e $3. @733 frace6e $3. @736 frace7e $3. @739 frace8e $3. @751 matchs 1. @755 aged 3. @758 ager5 1. @759 ager22 2. @761 manner 1. @762 dispo $1. @763 autopsy $1. @765 place 1. @767 ucod $4. @772 ucodr130 3. @776 recwt 8. ; proc print data=&dataset. (obs=6); proc contents data=&dataset.; /* Copyright 2008 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. */