That's not making sense. Please post your proc contents.
93
var1 | Num | 8 |
# Variable Type Len Format Informat Label 6
var2 | Char | 4 |
No formats?
What does each one of those variables look like - to make sure?
var1 0234 0389 0423
var2 234 389 423
data one;
input var1;
cards;
123
456
789
234
;
run;
data two;
input var2 $;
cards;
0123
0456
0789
234
;
run;
data two_formatted;
set two;
var1=input(var2, best12.);
run;
proc sort data=one; by var1; run;
proc sort data=two_formatted; by var1; run;
data merged;
merge one two_formatted;
by var1;
run;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.