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 ...

Get An Introduction to SAS University 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.