Hello,
I have identified an error in within an address field and want to remove it.
Within an address field 'address_1' there is occassionally an error ' -- Please Select -- ' written within it. Is there a way to remove this phase from the address field?
thanks
Sally
Like this?
data HAVE;
ADDRESS_1= ' foo -- Please Select -- faa ';
ADDRESS_1=tranwrd(ADDRESS_1,'-- Please Select --','');
putlog ADDRESS_1=;
run;
ADDRESS_1=foo faa
May be something like this
data abc; input addr_ln_1 $50.; datalines; -- Please Select --1121 berkeley street 7755 cambridge ave ; run; data bde; set abc; addr_ln_1=tranwrd(addr_ln_1,'-- Please Select --',''); run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.