You minimize the CPU
time that SAS uses when you execute the minimum number of statements
in the most efficient order.
For a more efficient
program, place the subsetting IF statement as soon as logically possible
in a DATA step when creating a subset of data.
Review guidelines for
using conditional logic efficiently with IF-THEN/ELSE statements or
SELECT statements. Remember to minimize the number of statements that
use SAS functions or arithmetic operators.
Conditionally execute only necessary statements by placing statements in groups that are associated with IF-THEN/ELSE statements or SELECT/WHEN statements. Groups of statements execute only when a particular condition is true. Review the criteria ...