Chapter 11: Performing Conditional Processing
Grouping Age Using Conditional Processing
Using Conditional Logic to Check for Data Errors
Using Boolean Logic (AND, OR, and NOT Operators)
A Special Caution When Using Multiple OR Operators
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.