Overview

Introduction

You've learned how to create a SAS data set from raw data that is stored in an external file. You've also learned how to subset observations and how to assign values to variables.
This chapter shows you additional techniques for creating and managing variables. In this chapter, you learn how to retain and accumulate values, assign variable values conditionally, select variables, and assign permanent labels and formats to variables.
Variables Displayed in a Data Set
Variables Displayed in a Data Set

Objectives

In this chapter, you learn how to
  • create variables that accumulate variable values
  • initialize retained variables
  • assign values ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.