Introduction to SAS [11-19]

h

Copying Data Set

Copying a data set is a very common SAS programming task. It can be done easily by using the SET statement. 

From our previous example, we have created a data set called TEST

Now, we will copy this data set into a new data set called TEST2:

Example

Data Test2;
    Set Test;
Run;

TEST2 will contain exactly the same data as TEST.

💪 Sign up for a free SASCrunch account now and keep track of your learning progress!


Exercise

From our last exercise, we have created a data set called PROFILE. Create a new data set called NEW_PROFILE from PROFILE using the SET statement.

Need some help?

Get Hint

Get Solution