x cd /pub/data/saipe/Tools; %let pgm=cnvt_sd99; filename pgm "&pgm..sas"; *--Convert the SAIPE school district poverty estimates for income year 1999 (based on 4-1-00 census poulation). These data ARE NOT LIKE other saipe "estimates" because these are based on decennial census data. ************************************ J. Blodgett, OSEDA, U of Missouri Outreach and Extension Under contract with the Missouri Census Data Center --*; filename in '/pub/data/saipe/sd99_MO.dat' ; *<---Missouri only school district poverty ests--; filename usin '/pub/data/saipe/USSD99.dat'; *<---entire U.S. --; options mprint; %libname(saipe,opts=); data saipe.mosd99(label='MO School District poverty estimates for relevant children aged 5-17'); infile in; length State Stab $2 NCESCode $5 Distcode $6 Year $4 Vers $9 SumLev $3 Areaname $64 Totpop Pop5_17Rel Poor5_17Rel 5 PctPoor5_17 8 _file $10 ; retain stab 'mo' year '1999' SumLev 'sch'; input State $2. +1 NCESCode $5. +1 Areaname $64. @76 Totpop 8. +1 Pop5_17Rel 8. +1 Poor5_17Rel 8. +1 _file Vers; format TotPop -- Poor5_17Rel comma7. PctPoor5_17 5.1; if pop5_17Rel then PctPoor5_17=100*Poor5_17Rel/Pop5_17Rel; label Distcode='DESE Code' Pop5_17Rel 'Relevant Children 5 to 17' poor5_17Rel='Est Poor Relevant children 5-17'; label PctPoor5_17='% Poor Relevant Children 5-17'; drop _:; if state='29' then Distcode=put(ncescode,$schcnvt.); if distcode=ncescode then do; put '***** ' ncescode ' NCES code not found in schcnvt format conversion table.'; distcode=' '; end; run; proc print data=saipe.mosd99(obs=100); by State Stab; title "&pgm: Convert SAIPE School District Poverty Data for School Relevant Children Aged 5-17"; title2 "first 100 Obs on saipe.mosd99 dataset"; id ncescode; run; proc contents data=saipe.mosd99 position; run;