O'Reilly logo

Learning SAS by Example by Ron Cody

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

Chapter 7. Performing Conditional Processing

7.1

Introduction

102

7.2

The IF and ELSE IF Statements

102

7.3

The Subsetting IF Statement

105

7.4

The IN Operator

107

7.5

Using a SELECT Statement for Logical Tests

108

7.6

Using Boolean Logic (AND, OR, and NOT Operators)

109

7.7

A Caution When Using Multiple OR Operators

111

7.8

The WHERE Statement

112

7.9

Some Useful WHERE Operators

113

7.10

Problems

114

Introduction

This chapter describes the tools that allow programs to “make decisions” based on data values. For example, you may want to read a value of Age and create a variable that represents age groups. You may want to determine if values for a particular variable are within predefined limits. Programs that perform any of these operations require conditional processing—the ...

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