Chapter 22Using Best Practices
Executing Only Necessary Statements
Positioning of the Subsetting IF Statement
Comparative Example: Creating a Subset of Data
Using Conditional Logic Efficiently
Comparative Example: Creating Variables Conditionally Using DO Groups
Comparative Example: Creating Variables Conditionally When Calling Functions
Comparative Example: Creating Data in DO Groups
Eliminating Unnecessary Passes through the Data
Using a Single DATA or PROC Step to Enhance Efficiency
Using a Single DATA Step to Create Multiple Output Data Sets
Comparative Example: Creating Multiple Subsets of a SAS Data Set
Get SAS® Certification Prep Guide: Advanced 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.