Dear All
I need to map 2 data set ; example is below;
data A
var1
a
b
c
d
data B
1
2
3
4
5
6
Need result like
Data Result
a1
a2
a3
a4
a5
b1
b2
b3
b4
b5
c1
c2
c3
c4
c5
d1
d2
d3
d4
d5
can not use macro variable list becaz there is lots of obs in data a and b(out of limit t macro variable)
please suggest
Thanks in advance
proc sql;
create table test as select a.*,b.*, cats(a.var1,put(b.var2,best.)) as var from a as a , b as b ;
quit;
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!
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.