backnextLearning Path
   


Introduction

In order to create reports with SAS procedures, your data must be in the form of a SAS data set. If your data is not stored in the form of a SAS data set, you need to create a SAS data set by entering data, by reading raw data, or by accessing files that were created by other software.

This lesson shows you how to design and write a DATA step program to create a SAS data set from raw data that is stored in an external file. It also shows you how to read data from a SAS data set and write observations out to a raw data file.



DATA Step


Notice:

Setting Up Filerefs for Practices in This Lesson



Time to Complete

This lesson contains pages and takes approximately 1.5 hours to complete.



Objectives

In this lesson, you learn to

  • reference a SAS library
  • reference a raw data file
  • name a SAS data set to be created
  • specify a raw data file to be read
  • read standard character and numeric values in fixed fields
  • create new variables and assign values
  • select observations based on conditions
  • read instream data
  • submit and verify a DATA step program
  • read a SAS data set and write the observations out to a raw data file.

Prerequisites

Before taking this lesson, you should complete the following lessons:

  • .

  Copyright © 2003 SAS Institute Inc., Cary, NC, USA. All rights reserved.
Terms of Use & Legal Information | Privacy Statement
backnext