This is my current dataset (an example so you can reproduce my case, the real one is much bigger):
data have;
infile datalines truncover;
input type $ model $;
datalines;
XX-1 Light
XX-2 Heavy
XX-3 Heavy
XX-4 Heavy
XX-5 Slim
XX-6 Light
XX-7 Heavy
;
I want to add two lines of data to it:
XX-8 Light XX-9 Slim
Create a new dataset, and append it:
data have;
infile datalines truncover;
input type $ model $;
datalines;
XX-1 Light
XX-2 Heavy
XX-3 Heavy
XX-4 Heavy
XX-5 Slim
XX-6 Light
XX-7 Heavy
;
data new;
infile datalines truncover;
input type $ model $;
datalines;
XX-8 Light
XX-9 Slim
;
proc append
base=have
data=new
;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.