*--create stf903x views for the St. Louis and Kansas City MSAs--; * i.e. creates members: kcmo (kansas city / mo subset of moi) kcks (kansas city / ks subset of ksi) and kc (union of above 2: kcks||kcmo) ---and--- members: stlmo (st. louis/ mo subset of moi) stlil (st. louis / il subset of ili) and stl (union of above 2: stlil||stlmo) ---------------------------------------------------------------*; options linesize=90 nodate pagesize=40 msglevel=i; *-----------------------------jgb, 11-10-94--------------------*; x cd /mscdc/data/stf903x/Tools; filename pgm 'stlkcvws.sas'; *-------------------kansas city views---------------*; proc sql; create view stf903x.kcks as select * from ksi where msacmsa='3760'; create view stf903x.kcmo as select * from moi where msacmsa='3760'; create view stf903x.kc as select * from kcks union corresponding select * from kcmo; *--short test run--; select geocode,areaname,totpop from stf903x.kc where slvl='050'; describe view stf903x.kc; *-------------------st. louis views---------------*; proc sql; create view stf903x.stlil as select * from ili where msacmsa='7040'; create view stf903x.stlmo as select * from moi where msacmsa='7040'; create view stf903x.stl as select * from stlil union corresponding select * from stlmo; *--short test run--; select geocode,areaname,totpop from stf903x.stl where slvl='050'; quit;