x cd /pub/data/pl942000/Tools; %let pgm=moblkpops_csv_dbf; filename pgm "&pgm..sas"; *--Create a CSV file with mosums data for all census blocks in the state. For J. Harlan, GRC, 3-01. John Blodgett, OSEDA, U. of Missouri Outreach & Extension --*; libname pl942000 '/pub/data/census_2000/pl942000' access=readonly; filename dlmout '/pub/data/pl942000/temp.moblks.csv'; filename dbfout '/pub/data/pl942000/temp.moblks.dbf'; /*<=========================Comment out===================================== *--create the custom block level extract. Drop a few unlikely to be of value vars--; data togo; length polid $18; set pl942000.mosums; where sumlev='750'; * where also county='29019'; *************TEST***********; polid='bl'||county||trim(compress(tract,'. '))||block; keep polid cnty vtd placefp cousubfp msacmsa sldl sldu cd106 sdelm sdsec sduni taz tract block _numeric_; run; %cnvtdlm(setin=togo,names=1,varlabs=1,hquotes=1,lrecl=4096) ; run; proc dbf data=togo db4=dbfout; *--proc knows when you specify the "data" parm (instead of the "out" parm) that it needs to convert FROM sas to DBF. --; run; ===========================End commented out================================ */ *---Read the dbf file back in to see if we can confirm problem Harlan had with some 90 block data in St. Louis msa-; proc dbf out=togoback db4=dbfout; run; data toobig; set togoback; where totpop gt 5000 or pop100 gt 5000; if _n_ le 25 then put / _all_; else stop; run ;