SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||next

Reading and Concatenating SAS Data Sets
Lesson Overview


Introduction

Often, you might want to create a new data set from an existing SAS data set. To create the new data set, you can read a single data set, or you can concatenate two or more data sets. Concatenating appends the observations from one data set to another data set.


Reading and concatenating SAS data sets

This lesson shows you how to use the DATA step to read and concatenate SAS data sets. When you create your new data set, you can choose variables and select observations based on one or more conditions.

This lesson contains 23 pages and takes approximately 30-45 minutes to complete.

Note: You can also merge or join two or more data sets. For details, see the lessons Merging SAS Data Sets and Performing Queries Using SQL


Objectives

In this lesson you learn to

  • create a new data set from one or more existing data sets
  • select observations based on a condition
  • select variables to include or exclude.


Prerequisites

Before taking this lesson, you should have completed the following lessons:

Introduction to SAS Programming


||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement