O'Reilly logo

The DS2 Procedure: SAS Programming Methods at Work by Peter Eberhardt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required