Data Set [6-14]

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:


Data Test2;
    Set Test;

TEST2 will contain exactly the same data as TEST.


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