x cd /pub/data/acs2005/Tools; %let pgm=examine_moes; filename pgm "&pgm..sas"; *---look at moe values on the acs2005 profiles data sets to get sme feeling for what the pct moe values are so we can set limits for our profile reports.--; %libname(acs2005); libname profiles '/pub/data/acs2005/profiles'; data pctmoes; set profiles.dp1 (where=(sumlev='795')); array dp(103) dp1i1-dp1i103 ; array marg(103) margdp1i1-margdp1i103; do i=1 to 103; _value=dp(I); if _value then pctmoe=100*marg(i)/_value; keep pctmoe; if _value ne . then output; end; run; proc univariate data=pctmoes; run;