O'Reilly logo

An Introduction to SAS University Edition 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 11: Performing Conditional Processing

Introduction

Grouping Age Using Conditional Processing

Using Conditional Logic to Check for Data Errors

Describing the IN Operator

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

A Special Caution When Using Multiple OR Operators

Conclusion

Problems

Introduction

All programming languages allow you to perform conditional processing—making decisions based on data values or other conditions. As an example, you might want to create a new variable (Age_Group) based on the values of age. Another common use of conditional logic is to check if data values are within a prescribed range. Performing operations of this type requires conditional processing.

Grouping Age Using Conditional Processing

For the first ...

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