data ds;
input id var ;
datalines;
1 20
2 200
3 450
;
run;
data ds1;
input id var$ ;
datalines;
1 AA1
2 BB2
;
run;
data concat;
set ds ds1;
proc print;
run;
Do a search for "variable has been defined as numeric and character" here on the communities, and you'll find your answer. This topic has come up hundreds of times.
You are appending data sets. Variables of the same name must be of the same type. And if they are of different lengths you will get warnings about possible truncation of data.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.