1 The SAS System 12:48 Wednesday, April 1, 2009 NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) 9.1 (TS1M3) Licensed to HARVARD UNIV - SCHOOL OF PUBLIC HEALTH - T&R, Site 0001177014. NOTE: This session is executing on the SunOS 5.10 platform. NOTE: SAS 9.1.3 Service Pack 3 ----------------------------------------------------------------------- NBER NOTE: sas now defaults to sas9. sas8 or sas6 will invoke sas version 8 or 6 respectively. - 2005/10/21 ----------------------------------------------------------------------- You are running SAS 9. Some SAS 8 files will be automatically converted by the V9 engine; others are incompatible. Please see http://support.sas.com/rnd/migration/planning/platform/64bit.html PROC MIGRATE will preserve current SAS file attributes and is recommended for converting all your SAS libraries from any SAS 8 release to SAS 9. For details and examples, please see http://support.sas.com/rnd/migration/index.html This message is contained in the SAS news file, and is presented upon initialization. Edit the file "news" in the "misc/base" directory to display site-specific news and information in the program log. The command line option "-nonews" will prevent this display. NOTE: SAS initialization used: real time 0.36 seconds cpu time 0.12 seconds 1 *options obs=100 ; 2 options nocenter ; 3 4 /*------------------------------------------------ 5 by Jean Roth Wed Apr 1 12:45:02 EDT 2009 6 This program reads the 2005 NCHS Natality Detail U.S. Territories Data File 7 Report errors to jroth@nber.org 8 This program is distributed under the GNU GPL. 9 See end of this file and 10 http://www.gnu.org/licenses/ for details. 11 ----------------------------------------------- */ 12 13 * The following line should contain the directory 14 where the SAS file is to be stored ; 15 16 libname library "."; NOTE: Libref LIBRARY was successfully assigned as follows: Engine: V9 Physical Name: /disk/nber10/SCCS/natality/2005/data 17 18 * The following line should contain 19 the complete path and name of the raw data file. 20 On a PC, use backslashes in paths as in C:\ ; 2 The SAS System 12:48 Wednesday, April 1, 2009 21 22 FILENAME datafile pipe "zcat 22 ! /homes/data/natality/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/natality/Nat2005ps.zip "; 23 24 * The following line should contain the name of the SAS dataset ; 25 26 %let dataset = library.natlterr2005; 27 28 DATA &dataset ; 29 30 INFILE datafile LRECL = 20000 ; 31 attrib revision length=$1 label="Revision U,R"; 32 attrib recwt length=3 label="Record Weight U,R"; 33 attrib dob_yy length=4 label="Birth Year U,R"; 34 attrib dob_mm length=3 label="Birth Month U,R"; 35 attrib dob_wk length=3 label="Weekday U,R"; 36 attrib oterr length=$2 label="Occurrence Territory/Possession U,R"; 37 attrib xostate length=$2 label="Expanded Occurrence State U,R"; 38 attrib ocntyfips length=3 label="Occurrence FIPS County U,R"; 39 attrib ocntypop length=3 label="Occurence County Population U,R"; 40 attrib bfacil length=3 label="Birth Place R"; 41 attrib ubfacil length=3 label="Birth Place U,R"; 42 attrib bfacil3 length=3 label="Birth Place Recode U,R"; 43 attrib mage_impflg length=3 label="Mother's Age Imputated Flag U,R"; 44 attrib mage_repflg length=3 label="Reported Age of Mother Flag U,R"; 45 attrib mager length=3 label="Mother's Single Year of Age U,R"; 46 attrib mager14 length=3 label="Mother's Age Recode 14 U,R"; 47 attrib mager9 length=3 label="Mother's Age Recode 9 U,R"; 48 attrib mbcntry length=$2 label="Mother's Birth Country R"; 49 attrib mrterr length=$2 label="Mother's Residence Territory/Posession U,R"; 50 attrib rcnty_pop length=$1 label="Population of Residence County U,R "; 51 attrib rectype length=3 label="Record Type U,R"; 52 attrib restatus length=3 label="Residence Status U,R"; 53 attrib mbrace length=3 label="Mother's Bridged Race R "; 54 attrib mrace length=3 label="Mother's Race U "; 55 attrib mracerec length=3 label="Mother's Race Recode U,R"; 56 attrib mraceimp length=$1 label="Mother's Race Imputed Flag U,R "; 57 attrib umhisp length=3 label="Mother's Hispanic Origin U,R "; 58 attrib mracehisp length=3 label="Mother's Race/Hispanic Origin U,R "; 59 attrib mar length=3 label="Mother's Marital Status U,R"; 60 attrib mar_imp length=3 label="Mother's Marital Status Imputed Flag U,R"; 61 attrib meduc length=3 label="Mother's Education R "; 62 attrib dmeduc length=3 label="Mother's Education U "; 63 attrib meduc_rec length=3 label="Mother's Education Recode U "; 64 attrib fagerpt_flg length=3 label="Father's Reported Age Used U,R"; 65 attrib fagerpt length=3 label="Father's Reported Age U,R"; 66 attrib fagecomb length=3 label="Father's Combined Age (Revised) R"; 67 attrib ufagecomb length=3 label="Father's Combined Age U"; 68 attrib urf_anemia length=3 label="Anemia U "; 69 attrib urf_card length=3 label="Cardiac U"; 70 attrib urf_lung length=3 label="Acute or Chronic Lung Disease U"; 71 attrib urf_diab length=3 label="Diabetes U,R"; 72 attrib fbrace length=3 label="Father's Bridged Race R "; 73 attrib urf_gen length=3 label="Genital Herpes U"; 74 attrib urf_hydra length=3 label="Hydramnios/Oligohydramnios U"; 75 attrib fracerec length=3 label="Father's Race Recode U,R"; 76 attrib urf_hemo length=3 label="Hemoglobinopathy U"; 77 attrib urf_chyper length=3 label="Chronic Hypertension U,R"; 3 The SAS System 12:48 Wednesday, April 1, 2009 78 attrib urf_phyper length=3 label="Pregnancy Associated Hypertension U,R"; 79 attrib urf_eclam length=3 label="Eclampsia U,R"; 80 attrib ufhisp length=3 label="Father's Hispanic Origin U,R "; 81 attrib urf_incerv length=3 label="Incompetent cervix U"; 82 attrib urf_pre4000 length=3 label="Previous infant 4000+ Grams U"; 83 attrib fagerec11 length=3 label="Father's Age Recode 11 U,R"; 84 attrib fracehisp length=3 label="Father's Race/Hispanic Origin U,R "; 85 attrib urf_preterm length=3 label="Previous Preterm or Small for Gestation U"; 86 attrib urf_renal length=3 label="Renal disease U"; 87 attrib frace length=3 label="Father's Race U "; 88 attrib urf_rh length=3 label="Rh sensitization U"; 89 attrib urf_uterine length=3 label="Uterine bleeding U"; 90 attrib urf_other length=3 label="Other Medical Risk Factors U"; 91 attrib uop_amnio length=3 label="Amniocentesis U"; 92 attrib uop_monit length=3 label="Electronic Fetal Monitoring U"; 93 attrib priorlive length=3 label="Prior Births Now Living U,R"; 94 attrib uop_induc length=3 label="Induction of labor U,R"; 95 attrib priordead length=3 label="Prior Births Now Dead U,R"; 96 attrib uop_stiml length=3 label="Stimulation of labor U"; 97 attrib uop_tocol length=3 label="Tocolysis U,R"; 98 attrib priorterm length=3 label="Prior Other Terminations U,R"; 99 attrib uop_ultra length=3 label="Ultrasound U"; 100 attrib uop_other length=3 label="Other Obstetric Procedures U"; 101 attrib lbo length=3 label="Live Birth Order U,R"; 102 attrib lbo_rec length=3 label="Live Birth Order Recode U,R"; 103 attrib tbo length=3 label="Total Birth Order U,R"; 104 attrib tbo_rec length=3 label="Total Birth Order Recode U,R"; 105 attrib dllb_mm length=3 label="Date of Last Live Birth - Month R"; 106 attrib dllb_yy length=4 label="Date of Last Live Birth - Year R"; 107 attrib precare length=3 label="Month Prenatal Care Began R"; 108 attrib precare_rec length=3 label="Month Prenatal Care Began Recode R"; 109 attrib mpcb length=3 label="Month Prenatal Care Began U"; 110 attrib mpcb_rec6 length=3 label="Month Prenatal Care Began Recode 6 U"; 111 attrib mpcb_rec5 length=3 label="Month Prenatal Care Began Recode 5 U"; 112 attrib uprevis length=3 label="Number of Prenatal Visits U,R"; 113 attrib previs_rec length=3 label="Number of Prenatal Visits Recode U,R"; 114 attrib apncu length=3 label="Adequacy of Prenatal Care Utilization Index R"; 115 attrib wtgain length=3 label="Weight Gain U,R"; 116 attrib wtgain_rec length=3 label="Weight Gain Recode U,R"; 117 attrib u_apncu length=3 label="Adequacy of Prenatal Care Utilization Index U"; 118 attrib dfpc_imp length=3 label="Day of Date First Prenatal Care Imputed R "; 119 attrib cig_1 length=3 label="Cigarettes 1st Trimester R "; 120 attrib cig_2 length=3 label="Cigarettes 2nd Trimester R "; 121 attrib cig_3 length=3 label="Cigarettes 3rd Trimester R "; 122 attrib tobuse length=3 label="Tobacco Use U"; 123 attrib cigs length=3 label="Cigarettes Per Day U"; 124 attrib cig_rec6 length=3 label="Cigarettes Recode U"; 125 attrib cig_rec length=$1 label="Cigarettes Recode R"; 126 attrib alcohol length=3 label="Alcohol Use U "; 127 attrib drinks length=3 label="Drinks Per Week U"; 128 attrib drinks_rec length=3 label="Drinks Recode U "; 129 attrib uld_febr length=3 label="Febrile U"; 130 attrib uld_meco length=3 label="Meconium U,R"; 131 attrib uld_ruptr length=3 label="Premature Rupture of Membrane U"; 132 attrib uld_abrup length=3 label="Abruptio placenta U"; 133 attrib uld_prepla length=3 label="Placenta previa U"; 134 attrib uld_excbl length=3 label="Other Excessive Bleeding U"; 135 attrib uld_seiz length=3 label="Seizures During Labor U "; 4 The SAS System 12:48 Wednesday, April 1, 2009 136 attrib uld_precip length=3 label="Precipitous labor U,R"; 137 attrib uld_prolg length=3 label="Prolonged Labor U"; 138 attrib uld_dysfn length=3 label="Dysfunctional Labor U"; 139 attrib uld_breech length=3 label="Breech U,R"; 140 attrib uld_cephal length=3 label="Cephalopelvic Disproportion U"; 141 attrib uld_cord length=3 label="Cord Prolapse U"; 142 attrib uld_anest length=3 label="Anesthetic Complications U"; 143 attrib uld_distr length=3 label="Fetal Distress U"; 144 attrib uld_other length=3 label="Other Complications U"; 145 attrib ume_vag length=3 label="Vaginal U,R"; 146 attrib ume_vbac length=3 label="Vaginal after C-Section U,R"; 147 attrib ume_primc length=3 label="Primary C-Section U,R"; 148 attrib ume_repec length=3 label="Repeat C-Section U,R"; 149 attrib ume_forcp length=3 label="Forceps U,R "; 150 attrib ume_vac length=3 label="Vacuum U,R"; 151 attrib rdmeth_rec length=3 label="Delivery Method Recode (Revised) R"; 152 attrib udmeth_rec length=3 label="Delivery Method Recode (Unrevised) U"; 153 attrib attend length=3 label="Attendant U,R"; 154 attrib apgar5 length=3 label="Five Minute Apgar Score U,R"; 155 attrib apgar5r length=3 label="Five Minute Apgar Recode U,R"; 156 attrib dplural length=3 label="Plurality U,R"; 157 attrib imp_plur length=3 label="Plurality Imputed U,R"; 158 attrib sex length=$1 label="Sex U,R"; 159 attrib imp_sex length=3 label="Imputed Sex "; 160 attrib dlmp_mm length=3 label="Last Normal Menses - Month U,R"; 161 attrib dlmp_dd length=3 label="Last Normal Menses - Day U,R"; 162 attrib dlmp_yy length=4 label="Last Normal Menses - Year U,R"; 163 attrib estgest length=3 label="Obstetric/Clinical Gestation Est. U,R "; 164 attrib combgest length=3 label="Gestation - Detail in Weeks U,R"; 165 attrib gestrec10 length=3 label="Gestation Recode 10 U,R"; 166 attrib gestrec3 length=3 label="Gestation Recode 3 U,R"; 167 attrib obgest_flg length=3 label="Clinical Estimate of Gestation Used Flag U,R "; 168 attrib gest_imp length=3 label="Gestation Imputed Flag U,R"; 169 attrib dbwt length=4 label="Birth Weight - Detail in Grams U,R"; 170 attrib bwtr12 length=3 label="Birth Weight Recode 12 U,R"; 171 attrib bwtr4 length=3 label="Birth Weight Recode 4 U,R"; 172 attrib ab_aven1 length=$1 label="Assisted Ventilation R "; 173 attrib ab_aven6 length=$1 label="Assisted Ventilation >6 hrs R "; 174 attrib ab_nicu length=$1 label="Admission to NICU R "; 175 attrib ab_surf length=$1 label="Surfactant R "; 176 attrib ab_anti length=$1 label="Antibiotics R "; 177 attrib ab_seiz length=$1 label="Seizures R "; 178 attrib ab_binj length=$1 label="Birth Injury R "; 179 attrib uab_anem length=3 label="Anemia U"; 180 attrib uab_injury length=3 label="Birth Injury U"; 181 attrib uab_alcoh length=3 label="Fetal Alcohol Syndrome U"; 182 attrib uab_hyal length=3 label="Hyaline Membrane Disease U"; 183 attrib uab_mecon length=3 label="Meconium Aspiration Syndrome U"; 184 attrib uab_venl30 length=3 label="Assisted Ventilation < 30 min U"; 185 attrib uab_ven30m length=3 label="Assisted Ventilation >= 30 min U"; 186 attrib uab_nseiz length=3 label="Seizures U"; 187 attrib uab_other length=3 label="Other Abnormal Conditions U"; 188 attrib ca_anen length=$1 label="Anencephaly R"; 189 attrib ca_mnsb length=$1 label="Meningomyelocele/Spina Bifida R"; 190 attrib ca_cchd length=$1 label="Cyanotic Congenital Heart Disease R"; 191 attrib ca_cdh length=$1 label="Congenital Diaphragmatic Hernia R"; 192 attrib ca_omph length=$1 label="Omphalocele R"; 193 attrib ca_gast length=$1 label="Gastroschisis R"; 5 The SAS System 12:48 Wednesday, April 1, 2009 194 attrib ca_limb length=$1 label="Limb Reduction Defect R"; 195 attrib ca_cleft length=$1 label="Cleft Lip w/ or w/o Cleft Palate R"; 196 attrib ca_clpal length=$1 label="Cleft Palate alone R"; 197 attrib ca_down length=$1 label="Downs Syndrome R"; 198 attrib ca_disor length=$1 label="Suspected Chromosonal Disorder R"; 199 attrib ca_hypo length=$1 label="Hypospadias R"; 200 attrib uca_anen length=3 label="Anencephalus U,R"; 201 attrib uca_spina length=3 label="Spina bifida/Meningocele U,R"; 202 attrib uca_hydro length=3 label="Hydrocephalus U"; 203 attrib uca_micro length=3 label="Microcephalus U"; 204 attrib uca_nerv length=3 label="Other Central Nervous System Anomalies U"; 205 attrib uca_heart length=3 label="Heart malformations U"; 206 attrib uca_circ length=3 label="Other Circulatory/Respiratory Anomalies U"; 207 attrib uca_rectal length=3 label="Rectal Atresia/Stenosis U"; 208 attrib uca_trach length=3 label="Tracheo-Esophageal Fistula U"; 209 attrib uca_ompha length=3 label="Omphalocele/Gastroschisis U,R"; 210 attrib uca_gastro length=3 label="Other Gastrointestinal Anomalies U"; 211 attrib uca_genital length=3 label="Malformed Genitalia U "; 212 attrib uca_renal length=3 label="Renal Agenesis U"; 213 attrib uca_urogen length=3 label="Other Urogenital Anomalies U"; 214 attrib uca_cleftlp length=3 label="Cleft Lip/Palate U,R"; 215 attrib uca_adactyly length=3 label="Polydactyly/Syndactyly/Adactyly U"; 216 attrib uca_clubft length=3 label="Club Foot U"; 217 attrib uca_hernia length=3 label="Diaphragmatic Hernia U"; 218 attrib uca_muscu length=3 label="Other Musculoskeletal Anomalies U"; 219 attrib uca_downs length=3 label="Down Syndrome U,R"; 220 attrib uca_chromo length=3 label="Other Chromosomal Anomalies U"; 221 attrib uca_other length=3 label="Other Congenital Anomalies U"; 222 attrib f_morigin length=3 label="Origin of Mother U,R"; 223 attrib f_forigin length=3 label="Origin of Father U,R"; 224 attrib f_meduc length=3 label="Education of Mother R"; 225 attrib f_clinest length=3 label="Clinical Estimate of Gestation U,R"; 226 attrib f_apgar5 length=3 label="5 - minute Apgar U,R"; 227 attrib f_tobaco length=3 label="Tobacco use R"; 228 attrib f_rf_pdiab length=3 label="Prepregnancy Diabetes R"; 229 attrib f_rf_gdiab length=3 label="Gestational Diabetes R"; 230 attrib f_rf_phyper length=3 label="Prepregnancy Hypertension R"; 231 attrib f_rf_ghyper length=3 label="Gestational Hypertension R"; 232 attrib f_rf_eclamp length=3 label="Eclampsia R"; 233 attrib f_rf_ppb length=3 label="Previous Preterm Birth R"; 234 attrib f_rf_ppo length=3 label="Poor Pregnancy Outcomes R"; 235 attrib f_rf_cesar length=3 label="Previous Cesarean R"; 236 attrib f_rf_ncesar length=3 label="Number of Previous Cesareans R"; 237 attrib f_ob_cervic length=3 label="Cervical Cerelage R"; 238 attrib f_ob_toco length=3 label="Tocolysis R"; 239 attrib f_ob_succ length=3 label="Successful External Cephalic Version R"; 240 attrib f_ob_fail length=3 label="Failed External Cephalic Version R"; 241 attrib f_ol_rupture length=3 label="Premature Rupture of the Membranes R"; 242 attrib f_ol_precip length=3 label="Precipitous Labor R"; 243 attrib f_ol_prolong length=3 label="Prolonged Labor R"; 244 attrib f_ld_induct length=3 label="Induction of Labor R"; 245 attrib f_ld_augment length=3 label="Augmentation of Labor R"; 246 attrib f_ld_nvrtx length=3 label="Non-Vertex Presentation R"; 247 attrib f_ld_steroids length=3 label="Steroids R"; 248 attrib f_ld_antibio length=3 label="Antibiotics R"; 249 attrib f_ld_chorio length=3 label="Chorioamnionitis R"; 250 attrib f_ld_mecon length=3 label="Meconium Staining R"; 251 attrib f_ld_fintol length=3 label="Fetal Intolerance R"; 6 The SAS System 12:48 Wednesday, April 1, 2009 252 attrib f_ld_anesth length=3 label="Anesthesia R"; 253 attrib f_md_attfor length=3 label="Attempted Forceps R"; 254 attrib f_md_attvac length=3 label="Attempted Vacuum R"; 255 attrib f_md_present length=3 label="Fetal Presentation R"; 256 attrib f_md_route length=3 label="Fetal Route and Method of Delivery R"; 257 attrib f_md_trial length=3 label="Trial of Labor Attempted R"; 258 attrib f_ab_vent length=3 label="Assisted Ventilation R"; 259 attrib f_ab_vent6 length=3 label="Assisted Ventilation >6hrs R"; 260 attrib f_ab_nicu length=3 label="Admission to NICU R "; 261 attrib f_ab_surfac length=3 label="Surfactant R "; 262 attrib f_ab_antibio length=3 label="Antibiotics R "; 263 attrib f_ab_seiz length=3 label="Seizures R "; 264 attrib f_ab_inj length=3 label="Birth Injury R "; 265 attrib f_ca_anen length=3 label="Anencephaly R"; 266 attrib f_ca_menin length=3 label="Meningomyelocele/Spina Bifida R"; 267 attrib f_ca_heart length=3 label="Cyanotic Congenital Heart Disease R"; 268 attrib f_ca_hernia length=3 label="Congenital Diaphragmatic Hernia R"; 269 attrib f_ca_ompha length=3 label="Omphalocele R"; 270 attrib f_ca_gastro length=3 label="Gastroschisis R"; 271 attrib f_ca_limb length=3 label="Limb Reduction Defect R"; 272 attrib f_ca_cleftlp length=3 label="Cleft Lip w/ or w/o Cleft Palate R"; 273 attrib f_ca_cleft length=3 label="Cleft Palate alone R"; 274 attrib f_ca_downs length=3 label="Downs Syndrome R"; 275 attrib f_ca_chrom length=3 label="Suspected Chromosonal Disorder R"; 276 attrib f_ca_hypos length=3 label="Hypospadias R"; 277 attrib f_med length=3 label="Mother's Education U"; 278 attrib f_wtgain length=3 label="Weight gain U,R"; 279 attrib f_alcol length=3 label="Alcohol use U"; 280 attrib f_api length=3 label="API codes U"; 281 attrib f_tobac length=3 label="Tobacco use U"; 282 attrib f_mpcb length=3 label="Month Prenatal Care Began R"; 283 attrib f_mpcb_u length=3 label="Month Prenatal Care Began U"; 284 attrib f_urf_anemia length=3 label="Anemia U"; 285 attrib f_urf_cardiac length=3 label="Cardiac U"; 286 attrib f_urf_lung length=3 label="Acute or Chronic Lung Disease U"; 287 attrib f_urf_diabetes length=3 label="Diabetes U"; 288 attrib f_urf_herpes length=3 label="Genital Herpes U"; 289 attrib f_urf_hydra length=3 label="Hydramnios/Oligohydramnios U"; 290 attrib f_urf_hemo length=3 label="Hemoglobinopathy U"; 291 attrib f_urf_chyper length=3 label="Chronic Hypertension U"; 292 attrib f_urf_phyper length=3 label="Pregnancy Associated Hypertension U"; 293 attrib f_urf_eclamp length=3 label="Eclampsia U"; 294 attrib f_urf_incervix length=3 label="Incompetent Cervix U"; 295 attrib f_urf_pre4000 length=3 label="Previous Infant 4000+ Grams U"; 296 attrib f_urf_preterm length=3 label="Previous Preterm Small for Gestation U"; 297 attrib f_urf_renal length=3 label="Renal Disease U"; 298 attrib f_urf_rh length=3 label="Rh Sensitization U"; 299 attrib f_urf_uterine length=3 label="Uterine Bleeding U"; 300 attrib f_urf_othermr length=3 label="Other Medical Risk Factors U"; 301 attrib f_uob_amnio length=3 label="Amniocentesis U"; 302 attrib f_uob_monitor length=3 label="Electronic Fetal Monitoring U"; 303 attrib f_uob_induct length=3 label="Induction of labor U"; 304 attrib f_uob_stimul length=3 label="Stimulation of labor U"; 305 attrib f_uob_tocol length=3 label="Tocolysis U"; 306 attrib f_uob_ultras length=3 label="Ultrasound U"; 307 attrib f_uob_otherob length=3 label="Other Obstetric Procedures U"; 308 attrib f_uld_febrile length=3 label="Febrile U"; 309 attrib f_uld_meconium length=3 label="Meconium U"; 7 The SAS System 12:48 Wednesday, April 1, 2009 310 attrib f_uld_rupture length=3 label="Premature Rupture of Membrane U"; 311 attrib f_uld_abruptio length=3 label="Abruptio placenta U"; 312 attrib f_uld_preplace length=3 label="Placenta previa U"; 313 attrib f_uld_excebld length=3 label="Other Excessive Bleeding U"; 314 attrib f_uld_seizure length=3 label="Seizures During Labor U "; 315 attrib f_uld_precip length=3 label="Precipitous labor U"; 316 attrib f_uld_prolg length=3 label="Prolonged Labor U"; 317 attrib f_uld_dysfunc length=3 label="Dysfunctional Labor U"; 318 attrib f_uld_breech length=3 label="Breech U"; 319 attrib f_uld_cephalo length=3 label="Cephalopelvic Disproportion U"; 320 attrib f_uld_cord length=3 label="Cord Prolapse U"; 321 attrib f_uld_anest length=3 label="Anesthetic Complications U"; 322 attrib f_uld_distr length=3 label="Fetal Distress U"; 323 attrib f_uld_other length=3 label="Other Complications U"; 324 attrib f_u_vag length=3 label="Vaginal U"; 325 attrib f_u_vbac length=3 label="Vaginal after C-Section U"; 326 attrib f_u_primc length=3 label="Primary C-Section U"; 327 attrib f_u_repec length=3 label="Repeat C-Section U"; 328 attrib f_u_forcp length=3 label="Forceps U"; 329 attrib f_u_vac length=3 label="Vacuum U"; 330 attrib f_uab_anemia length=3 label="Anemia U"; 331 attrib f_uab_injury length=3 label="Birth Injury U"; 332 attrib f_uab_alcosyn length=3 label="Fetal Alcohol Syndrome U"; 333 attrib f_uab_hyaline length=3 label="Hyaline Membrane Disease U"; 334 attrib f_uab_meconsyn length=3 label="Meconium Aspiration Syndrome U"; 335 attrib f_uab_venl30 length=3 label="Assisted Ventilation <30 min U"; 336 attrib f_uab_ven30m length=3 label="Assisted Ventilation >=30 min U"; 337 attrib f_uab_seiz length=3 label="Seizures U"; 338 attrib f_uab_otherab length=3 label="Other Abnormal Conditions U"; 339 attrib f_uca_anen length=3 label="Anencephalus U"; 340 attrib f_uca_spina length=3 label="Spina bifida/Meningocele U"; 341 attrib f_uca_hydro length=3 label="Hydrocephalus U"; 342 attrib f_uca_microce length=3 label="Microcephalus U"; 343 attrib f_uca_nervous length=3 label="Other Central Nervous System Anomalies U"; 344 attrib f_uca_heart length=3 label="Heart malformations U"; 345 attrib f_uca_circul length=3 label="Other Circulatory/Respiratory Anomalies U"; 346 attrib f_uca_rectal length=3 label="Rectal Atresia/Stenosis U"; 347 attrib f_uca_tracheo length=3 label="Tracheo-Esophageal Fistula U"; 348 attrib f_uca_omphalo length=3 label="Omphalocele/Gastroschisis U"; 349 attrib f_uca_gastro length=3 label="Other Gastrointestinal Anomalies U"; 350 attrib f_uca_genital length=3 label="Malformed Genitalia U "; 351 attrib f_uca_renalag length=3 label="Renal Agenesis U"; 352 attrib f_uca_urogen length=3 label="Other Urogenital Anomalies U"; 353 attrib f_uca_cleftlp length=3 label="Cleft Lip/Palate U"; 354 attrib f_uca_adactyl length=3 label="Polydactyly/Syndactyly/Adactyly U"; 355 attrib f_uca_club length=3 label="Club Foot U"; 356 attrib f_uca_hernia length=3 label="Diaphragmatic Hernia U"; 357 attrib f_uca_musculo length=3 label="Other Musculoskeletal Anomalies U"; 358 attrib f_uca_downs length=3 label="Down Syndrome U"; 359 attrib f_uca_chromo length=3 label="Other Chromosomal Anomalies U"; 360 attrib f_uca_othrcon length=3 label="Other Congenital Anomalies U"; 361 attrib mrace1e length=$3 label="Mother's Race Edited R"; 362 attrib mrace2e length=$3 label="Mother's Race Edited R"; 363 attrib mrace3e length=$3 label="Mother's Race Edited R"; 364 attrib mrace4e length=$3 label="Mother's Race Edited R"; 365 attrib mrace5e length=$3 label="Mother's Race Edited R"; 366 attrib mrace6e length=$3 label="Mother's Race Edited R"; 367 attrib mrace7e length=$3 label="Mother's Race Edited R"; 8 The SAS System 12:48 Wednesday, April 1, 2009 368 attrib mrace8e length=$3 label="Mother's Race Edited R"; 369 attrib frace1e length=$3 label="Father's Race Edited R"; 370 attrib frace2e length=$3 label="Father's Race Edited R"; 371 attrib frace3e length=$3 label="Father's Race Edited R"; 372 attrib frace4e length=$3 label="Father's Race Edited R"; 373 attrib frace5e length=$3 label="Father's Race Edited R"; 374 attrib frace6e length=$3 label="Father's Race Edited R"; 375 attrib frace7e length=$3 label="Father's Race Edited R"; 376 attrib frace8e length=$3 label="Father's Race Edited R"; 377 378 379 INPUT 380 381 @7 revision $1. 382 @8 recwt 1. 383 @15 dob_yy 4. 384 @19 dob_mm 2. 385 @29 dob_wk 1. 386 @30 oterr $2. 387 @32 xostate $2. 388 @37 ocntyfips 3. 389 @40 ocntypop 1. 390 @41 bfacil 1. 391 @42 ubfacil 1. 392 @59 bfacil3 1. 393 @87 mage_impflg 1. 394 @88 mage_repflg 1. 395 @89 mager 2. 396 @91 mager14 2. 397 @93 mager9 1. 398 @94 mbcntry $2. 399 @109 mrterr $2. 400 @132 rcnty_pop $1. 401 @137 rectype 1. 402 @138 restatus 1. 403 @139 mbrace 2. 404 @141 mrace 2. 405 @143 mracerec 1. 406 @144 mraceimp $1. 407 @148 umhisp 1. 408 @149 mracehisp 1. 409 @153 mar 1. 410 @154 mar_imp 1. 411 @155 meduc 1. 412 @156 dmeduc 2. 413 @158 meduc_rec 1. 414 @175 fagerpt_flg 1. 415 @176 fagerpt 2. 416 @182 fagecomb 2. 417 @184 ufagecomb 2. 418 @328 urf_anemia 1. 419 @329 urf_card 1. 420 @330 urf_lung 1. 421 @331 urf_diab 1. 422 @188 fbrace 2. 423 @332 urf_gen 1. 424 @333 urf_hydra 1. 425 @191 fracerec 1. 9 The SAS System 12:48 Wednesday, April 1, 2009 426 @334 urf_hemo 1. 427 @335 urf_chyper 1. 428 @336 urf_phyper 1. 429 @337 urf_eclam 1. 430 @195 ufhisp 1. 431 @338 urf_incerv 1. 432 @339 urf_pre4000 1. 433 @186 fagerec11 2. 434 @196 fracehisp 1. 435 @340 urf_preterm 1. 436 @341 urf_renal 1. 437 @199 frace 2. 438 @342 urf_rh 1. 439 @343 urf_uterine 1. 440 @344 urf_other 1. 441 @355 uop_amnio 1. 442 @356 uop_monit 1. 443 @204 priorlive 2. 444 @357 uop_induc 1. 445 @206 priordead 2. 446 @358 uop_stiml 1. 447 @359 uop_tocol 1. 448 @208 priorterm 2. 449 @360 uop_ultra 1. 450 @361 uop_other 1. 451 @210 lbo 2. 452 @212 lbo_rec 1. 453 @215 tbo 2. 454 @217 tbo_rec 1. 455 @220 dllb_mm 2. 456 @222 dllb_yy 4. 457 @245 precare 2. 458 @247 precare_rec 1. 459 @256 mpcb 2. 460 @258 mpcb_rec6 1. 461 @259 mpcb_rec5 1. 462 @270 uprevis 2. 463 @272 previs_rec 2. 464 @275 apncu 1. 465 @276 wtgain 2. 466 @278 wtgain_rec 1. 467 @279 u_apncu 1. 468 @280 dfpc_imp 1. 469 @284 cig_1 2. 470 @286 cig_2 2. 471 @288 cig_3 2. 472 @290 tobuse 1. 473 @291 cigs 2. 474 @293 cig_rec6 1. 475 @294 cig_rec $1. 476 @295 alcohol 1. 477 @296 drinks 2. 478 @298 drinks_rec 1. 479 @374 uld_febr 1. 480 @375 uld_meco 1. 481 @376 uld_ruptr 1. 482 @377 uld_abrup 1. 483 @378 uld_prepla 1. 10 The SAS System 12:48 Wednesday, April 1, 2009 484 @379 uld_excbl 1. 485 @380 uld_seiz 1. 486 @381 uld_precip 1. 487 @382 uld_prolg 1. 488 @383 uld_dysfn 1. 489 @384 uld_breech 1. 490 @385 uld_cephal 1. 491 @386 uld_cord 1. 492 @387 uld_anest 1. 493 @388 uld_distr 1. 494 @389 uld_other 1. 495 @395 ume_vag 1. 496 @396 ume_vbac 1. 497 @397 ume_primc 1. 498 @398 ume_repec 1. 499 @399 ume_forcp 1. 500 @400 ume_vac 1. 501 @401 rdmeth_rec 1. 502 @402 udmeth_rec 1. 503 @410 attend 1. 504 @415 apgar5 2. 505 @417 apgar5r 1. 506 @423 dplural 1. 507 @425 imp_plur 1. 508 @436 sex $1. 509 @437 imp_sex 1. 510 @438 dlmp_mm 2. 511 @440 dlmp_dd 2. 512 @442 dlmp_yy 4. 513 @446 estgest 2. 514 @451 combgest 2. 515 @453 gestrec10 2. 516 @455 gestrec3 1. 517 @456 obgest_flg 1. 518 @457 gest_imp 1. 519 @463 dbwt 4. 520 @471 bwtr12 2. 521 @473 bwtr4 1. 522 @476 ab_aven1 $1. 523 @477 ab_aven6 $1. 524 @478 ab_nicu $1. 525 @479 ab_surf $1. 526 @480 ab_anti $1. 527 @481 ab_seiz $1. 528 @482 ab_binj $1. 529 @483 uab_anem 1. 530 @484 uab_injury 1. 531 @485 uab_alcoh 1. 532 @486 uab_hyal 1. 533 @487 uab_mecon 1. 534 @488 uab_venl30 1. 535 @489 uab_ven30m 1. 536 @490 uab_nseiz 1. 537 @491 uab_other 1. 538 @492 ca_anen $1. 539 @493 ca_mnsb $1. 540 @494 ca_cchd $1. 541 @495 ca_cdh $1. 11 The SAS System 12:48 Wednesday, April 1, 2009 542 @496 ca_omph $1. 543 @497 ca_gast $1. 544 @498 ca_limb $1. 545 @499 ca_cleft $1. 546 @500 ca_clpal $1. 547 @501 ca_down $1. 548 @502 ca_disor $1. 549 @503 ca_hypo $1. 550 @504 uca_anen 1. 551 @505 uca_spina 1. 552 @506 uca_hydro 1. 553 @507 uca_micro 1. 554 @508 uca_nerv 1. 555 @509 uca_heart 1. 556 @510 uca_circ 1. 557 @511 uca_rectal 1. 558 @512 uca_trach 1. 559 @513 uca_ompha 1. 560 @514 uca_gastro 1. 561 @515 uca_genital 1. 562 @516 uca_renal 1. 563 @517 uca_urogen 1. 564 @518 uca_cleftlp 1. 565 @519 uca_adactyly 1. 566 @520 uca_clubft 1. 567 @521 uca_hernia 1. 568 @522 uca_muscu 1. 569 @523 uca_downs 1. 570 @524 uca_chromo 1. 571 @525 uca_other 1. 572 @569 f_morigin 1. 573 @570 f_forigin 1. 574 @571 f_meduc 1. 575 @573 f_clinest 1. 576 @574 f_apgar5 1. 577 @575 f_tobaco 1. 578 @582 f_rf_pdiab 1. 579 @583 f_rf_gdiab 1. 580 @584 f_rf_phyper 1. 581 @585 f_rf_ghyper 1. 582 @586 f_rf_eclamp 1. 583 @587 f_rf_ppb 1. 584 @588 f_rf_ppo 1. 585 @593 f_rf_cesar 1. 586 @594 f_rf_ncesar 1. 587 @601 f_ob_cervic 1. 588 @602 f_ob_toco 1. 589 @603 f_ob_succ 1. 590 @604 f_ob_fail 1. 591 @605 f_ol_rupture 1. 592 @606 f_ol_precip 1. 593 @607 f_ol_prolong 1. 594 @608 f_ld_induct 1. 595 @609 f_ld_augment 1. 596 @610 f_ld_nvrtx 1. 597 @611 f_ld_steroids 1. 598 @612 f_ld_antibio 1. 599 @613 f_ld_chorio 1. 12 The SAS System 12:48 Wednesday, April 1, 2009 600 @614 f_ld_mecon 1. 601 @615 f_ld_fintol 1. 602 @616 f_ld_anesth 1. 603 @617 f_md_attfor 1. 604 @618 f_md_attvac 1. 605 @619 f_md_present 1. 606 @620 f_md_route 1. 607 @621 f_md_trial 1. 608 @628 f_ab_vent 1. 609 @629 f_ab_vent6 1. 610 @630 f_ab_nicu 1. 611 @631 f_ab_surfac 1. 612 @632 f_ab_antibio 1. 613 @633 f_ab_seiz 1. 614 @634 f_ab_inj 1. 615 @635 f_ca_anen 1. 616 @636 f_ca_menin 1. 617 @637 f_ca_heart 1. 618 @638 f_ca_hernia 1. 619 @639 f_ca_ompha 1. 620 @640 f_ca_gastro 1. 621 @641 f_ca_limb 1. 622 @642 f_ca_cleftlp 1. 623 @643 f_ca_cleft 1. 624 @644 f_ca_downs 1. 625 @645 f_ca_chrom 1. 626 @646 f_ca_hypos 1. 627 @647 f_med 1. 628 @648 f_wtgain 1. 629 @649 f_alcol 1. 630 @650 f_api 1. 631 @667 f_tobac 1. 632 @668 f_mpcb 1. 633 @669 f_mpcb_u 1. 634 @681 f_urf_anemia 1. 635 @682 f_urf_cardiac 1. 636 @683 f_urf_lung 1. 637 @684 f_urf_diabetes 1. 638 @685 f_urf_herpes 1. 639 @686 f_urf_hydra 1. 640 @687 f_urf_hemo 1. 641 @688 f_urf_chyper 1. 642 @689 f_urf_phyper 1. 643 @690 f_urf_eclamp 1. 644 @691 f_urf_incervix 1. 645 @692 f_urf_pre4000 1. 646 @693 f_urf_preterm 1. 647 @694 f_urf_renal 1. 648 @695 f_urf_rh 1. 649 @696 f_urf_uterine 1. 650 @697 f_urf_othermr 1. 651 @701 f_uob_amnio 1. 652 @702 f_uob_monitor 1. 653 @703 f_uob_induct 1. 654 @704 f_uob_stimul 1. 655 @705 f_uob_tocol 1. 656 @706 f_uob_ultras 1. 657 @707 f_uob_otherob 1. 13 The SAS System 12:48 Wednesday, April 1, 2009 658 @711 f_uld_febrile 1. 659 @712 f_uld_meconium 1. 660 @713 f_uld_rupture 1. 661 @714 f_uld_abruptio 1. 662 @715 f_uld_preplace 1. 663 @716 f_uld_excebld 1. 664 @717 f_uld_seizure 1. 665 @718 f_uld_precip 1. 666 @719 f_uld_prolg 1. 667 @720 f_uld_dysfunc 1. 668 @721 f_uld_breech 1. 669 @722 f_uld_cephalo 1. 670 @723 f_uld_cord 1. 671 @724 f_uld_anest 1. 672 @725 f_uld_distr 1. 673 @726 f_uld_other 1. 674 @730 f_u_vag 1. 675 @731 f_u_vbac 1. 676 @732 f_u_primc 1. 677 @733 f_u_repec 1. 678 @734 f_u_forcp 1. 679 @735 f_u_vac 1. 680 @740 f_uab_anemia 1. 681 @741 f_uab_injury 1. 682 @742 f_uab_alcosyn 1. 683 @743 f_uab_hyaline 1. 684 @744 f_uab_meconsyn 1. 685 @745 f_uab_venl30 1. 686 @746 f_uab_ven30m 1. 687 @747 f_uab_seiz 1. 688 @748 f_uab_otherab 1. 689 @752 f_uca_anen 1. 690 @753 f_uca_spina 1. 691 @754 f_uca_hydro 1. 692 @755 f_uca_microce 1. 693 @756 f_uca_nervous 1. 694 @757 f_uca_heart 1. 695 @758 f_uca_circul 1. 696 @759 f_uca_rectal 1. 697 @760 f_uca_tracheo 1. 698 @761 f_uca_omphalo 1. 699 @762 f_uca_gastro 1. 700 @763 f_uca_genital 1. 701 @764 f_uca_renalag 1. 702 @765 f_uca_urogen 1. 703 @766 f_uca_cleftlp 1. 704 @767 f_uca_adactyl 1. 705 @768 f_uca_club 1. 706 @769 f_uca_hernia 1. 707 @770 f_uca_musculo 1. 708 @771 f_uca_downs 1. 709 @772 f_uca_chromo 1. 710 @773 f_uca_othrcon 1. 711 @1088 mrace1e $3. 712 @1091 mrace2e $3. 713 @1094 mrace3e $3. 714 @1097 mrace4e $3. 715 @1100 mrace5e $3. 14 The SAS System 12:48 Wednesday, April 1, 2009 716 @1103 mrace6e $3. 717 @1106 mrace7e $3. 718 @1109 mrace8e $3. 719 @1422 frace1e $3. 720 @1425 frace2e $3. 721 @1428 frace3e $3. 722 @1431 frace4e $3. 723 @1434 frace5e $3. 724 @1437 frace6e $3. 725 @1440 frace7e $3. 726 @1443 frace8e $3. 727 ; 728 NOTE: The infile DATAFILE is: Pipe command="zcat /homes/data/natality/ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/natality/Nat2005ps.zip " NOTE: 58631 records were read from the infile DATAFILE. The minimum record length was 1501. The maximum record length was 1501. NOTE: The data set LIBRARY.NATLTERR2005 has 58631 observations and 346 variables. NOTE: DATA statement used (Total process time): real time 7.28 seconds cpu time 5.36 seconds 729 proc print data=&dataset. (obs=6); 730 NOTE: There were 6 observations read from the data set LIBRARY.NATLTERR2005. NOTE: The PROCEDURE PRINT printed pages 1-5. NOTE: PROCEDURE PRINT used (Total process time): real time 0.19 seconds cpu time 0.07 seconds 731 proc contents data=&dataset.; 732 733 /* 734 Copyright 2009 shared by the National Bureau of Economic Research and Jean Roth 735 736 National Bureau of Economic Research. 737 1050 Massachusetts Avenue 738 Cambridge, MA 02138 739 jroth@nber.org 740 741 This program and all programs referenced in it are free software. You 742 can redistribute the program or modify it under the terms of the GNU 743 General Public License as published by the Free Software Foundation; 744 either version 2 of the License, or (at your option) any later version. 745 746 This program is distributed in the hope that it will be useful, 747 but WITHOUT ANY WARRANTY; without even the implied warranty of 748 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 749 GNU General Public License for more details. 750 751 You should have received a copy of the GNU General Public License 752 along with this program; if not, write to the Free Software 15 The SAS System 12:48 Wednesday, April 1, 2009 753 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 754 USA. 755 */ NOTE: The PROCEDURE CONTENTS printed pages 6-13. NOTE: PROCEDURE CONTENTS used (Total process time): real time 0.13 seconds cpu time 0.04 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 8.06 seconds cpu time 5.61 seconds