Previous Page | Next Page

Acting on Selected Observations

Learning More

Base SAS functions

Base SAS functions are documented in SAS Language Reference: Dictionary.

Comparison and logical operators

Complete information about comparison and logical operators is provided in SAS Language Reference: Concepts.

Executable statements

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.

IF-THEN and ELSE statement and clauses

The IF-THEN and ELSE statement and clauses are documented in SAS Language Reference: Dictionary.

IN operator

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

SELECT statement

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.

TRUNCOVER option

The TRUNCOVER option in the INFILE statement is described in Starting with Raw Data: The Basics.

Previous Page | Next Page | Top of Page