Acting on Selected Observations |
Base SAS functions are documented in SAS Language Reference: Dictionary.
Complete information about comparison and logical operators is provided in SAS Language Reference: Concepts.
You can issue only executable statements in IF-THEN/ELSE statements. For a complete list of executable and nonexecutable statements, see SAS Language Reference: Dictionary.
The IF-THEN and ELSE statement and clauses are documented in SAS Language Reference: Dictionary.
Information about the IN operator can be found in SAS Language Reference: Concepts. You can use the IN operator to shorten a comparison when you are comparing a value to a series of numeric or character constants (not variables or expressions).
The SELECT statement, which selects observations based on a condition, is documented in SAS Language Reference: Dictionary. Its action is equivalent to a series of IF-THEN/ELSE statements. If you have a long series of conditions and actions, then the DATA step may be easier to read if you write them in a SELECT group.
The TRUNCOVER option in the INFILE statement is described in Starting with Raw Data: The Basics.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.