O'Reilly logo

Combining and Modifying SAS® Data Sets: Examples Second Edition by Michele M. Burlew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Example 7.1 Modifying All Observations in a Data Set in Place

Goal

Modify the values of existing variables in a data set without creating a new copy of the data set.

Example Features

Featured StepDATA step
Featured Step Options and StatementsMODIFY statement
Related TechniquePROC SQL, UPDATE clause
A Closer LookReviewing the CONTENTS Output for a Data Set Modified with the MODIFY Statement

Input Data Set

Data set DATACONFERENCE stores the schedule for one day of a conference. This data set is also the master data set in Example 7.2.


                                 DATACONFERENCE

  Obs  section    starttime talktime speaker              topic 1 Applications 8:00 AM 50 Brooks, Jason Customer Service 2 Data Mining 8:00 AM 50 Jones, Janet Direct Marketing 3 Statistics 8:00 AM 50 Thomas, Linda New ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required