Chapter 3: Variables and Data Types

Variable Names

DECLARE Statement

DATA Step Conversion—Numerics

DATA Step Conversion—Characters

DATA Step Conversion—Date Types

DATA Step Conversion—Binary Types

DATA Step Conversion—Saving Your Table

More about Dates

Operations and Assignments

IF Operator

SELECT Operator

Arrays

Temporary Arrays

Variable Arrays

Deferred Dimensioning

Array Dimensions

Array Assignment

Missing Values and NULL Values

ANSI Mode and SAS Mode

Testing for Missing or NULL Values

The SAS DATA step is a powerful programming language based on two data types—numeric (double-precision-floating point) and fixed-length character. The data type can be explicitly stated using the LENGTH, FORMAT, or ATTRIB statement. Or, it can be implicitly determined ...

Get The DS2 Procedure: SAS Programming Methods at Work 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.