Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data readyinput;
- set readyforstreetname(obs=200);
- array cw (48) $11 (' ave ',' avenue ',' blvd ',' boulevard ',' cir ',' circle ',' court ',' ct ',' drive ',' dr ',' e ',' east ',' highway ',' hwy ',' lane ',' ln ',' north ',' n ',' nw ',' northwest ',' parkway ',' pkwy ',' pl ',' place ',' pl ',' plaza ',' rd ',' road ',' route ',' route ',' rte ',' rte ',' rt ',' rt ',' s ',' south ',' se ',' southeast ',' st ',' street ',' suite ',' ste ',' sw ',' southwest ',' w ',' west ',' apartment ',' apt ');
- do i=1 to dim(cw);
- if indexw(lowcase(address_input),cw[i])
- then
- do;
- add = upcase(tranwrd(lowcase(address_input),cw[i],''));
- end;
- end;
- drop cw:;
- run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement