BookmarkSubscribeRSS Feed
Andalusia
Obsidian | Level 7

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

 

1 REPLY 1
Kurt_Bremser
Super User

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;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 319 views
  • 0 likes
  • 2 in conversation