*----addfmats.sas: Define format codes used to standardize address-component words when parsing for matching street addresses.---; *---Last mod 8/10/2004 7:46AM ---; proc format ; value $stdir 's','so','south'='s' 'n','no','north'='n' 'e','east'='e' 'w','west'='w' 'ne'='ne','nw'='nw','se'='se','sw'='sw' other=' '; value $sttype 'av','ave','avenue'='ave' 'dr','drive'='dr' 'ct','court'='ct' 'bl','blvd'.'boulevard'=''bl' 'rd','road'='rd' 'dr','drive','drv'='dr' 'ci','cir','circle'='cir' 'ln','lane'='ln' 'hwy','hway','highway'='hway' 'st','str','street'='st' 'way','wy'='way' 'tpk' 'tpke' 'turnpike'='tpke' 'tr','trail','trl'='trl' 'ter','terr','terrace'='terr' 'sq','square'='sq' 'pkwy','parkwy','parkway','pky'='pkwy' 'pl','plc','place'='plc' 'plz','plaza'='plz' 'loop'='loop' 'xing','xng'='xing' 'ex','exp','expy','expressway'='expy' other=' '; value $uword /* mutlti-unit word */ 'apt','#','unit','apartment'='apt' 'room','rm'='room' 'fl','floor','flr'='flr' 'suite','ste'='ste' 'lot'='lot' 'box','bx'='box'; *--this is our attempt at replicating the old admatch pattern conversion table. Codes are 1 for street dir, 2 for type, 3 for multi-unit pref word, 4 for multi-unit sfx word and 5 for anything else (presumably the street name words. So 123 s maple ave apt 4 would have a pattern of 15235 and would convert to 15236 . The "6" indicates a multi-unit code. ---; value $patcnvt '1','2','3','4'='5' '12'='52' /* North Ave is assumed to be an Avenue named North */ '112'='152' '15235'='15236' '5235'='5236' run;