Hi there,
Hope to receive some help with perl expression, where there are two columns to compare with, the match column should be flagging should obs where it matches. example as below:
ColumnA Column B Mached
ABC01 ABC1 Y
PAB1 PAB01 Y
Cob1 COB1 Y
BDD01 BDC01 N
Thanks for helping.
Cheers
Build on this:
data want;
set have;
s1 = prxchange("s/01/1/", -1, string1);
s2 = prxchange("s/01/1/", -1, string2);
match = upcase(s1) = upcase(s2);
run;
You have two almost identical questions in two threads. Are both actual questions?
Build on this:
data want;
set have;
s1 = prxchange("s/01/1/", -1, string1);
s2 = prxchange("s/01/1/", -1, string2);
match = upcase(s1) = upcase(s2);
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.