x cd /pub/data/sf32000x/Tools; %let pgm=cnvt_profile_nccna; filename pgm "&pgm..sas"; /*--This program reads the custom aggregation carried out in the aggsf3_nccna to create a corresponding stf32000x extract and then generate a profile report using dp3_2k. Running 10-1-02 as opart of project for the North Central Columiba Neighborhood Assn (NCCNA) John Clark was contact person for the assn. ---*/ libname sf3 (sf32000); *<--alternate name--; libname sf3x '/pub/data/sf32000x'; libname user '/SAS_temp/user'; %let setin=nccna; %let setout=&setin; %let dvmode=data; title "&pgm"; %include '/pub/sasmacro/dovarsf3.sas'; *---contains the dovars macro-------------------; data sf3x.&setout; length default=5 Obs 5 esriid $16; set sf3.&setin.ph ; *--no phct or phctr datasets could be created--; %include 'invoke_dovars.sas'; logrecno=1; grcid="nccna"; keep geocode sumlev areaname logrecno state county; keep TotPop -- grcid; label Obs='Observation #'; drop _iobs _hobs; run; /*<=========================Comment out===================================== ===========================End commented out================================ */ *----now generate the dp3_2k profile report----; ods listing close; ods html file='/pub/reports/temp/nccna.html' (title="MCDC Demographic Profile 3, 2000 Census ") style=sasweb; ods printer pdf file='/pub/reports/temp/nccna.pdf' style=sasweb; %let st=mo; options mprint; %dp3_2k(setin=sf3x.nccna,title=%str(North Center Columbia Neighborhhod Association)); ods html close; ods printer close;