x cd /mscdc/sas/formats/Tools; %let pgm=ckmetros; filename pgm "&pgm..sas"; *--check $metro format ocdes to see which 1990 metro areas are not being included in the format codes.--; *--jgb, 6-7-97--; %libname(stf903x) data report; set stf903x.us(where=(slvl=:'30') keep=_char_ totpop); if slvl='300' then mcode=msacmsa; else if slvl='301' then mcode=pmsa; if put(mcode,$metro.)=msacmsa; amcode=mcode; format amcode $metro94_.; keep slvl geocode mcode areaname msacmsa pmsa amcode totpop; run; options nodate ls=112 ps=58; proc print data=report d u; title 'ckmetros: listing of metro codes on 1990 stf3 not in $metro'; title2 'The amcode field is just mcode using $metro94_.'; run;