How the DATA Step Works: A Basic Introduction
Overview of the DATA Step
The DATA step consists
of a group of SAS statements that begins with a DATA statement. The
DATA statement begins the process of building a SAS data set and names
the data set. The statements that make up the DATA step are compiled,
and the syntax is checked. If the syntax is correct, then the statements
are executed. In its simplest form, the DATA step is a loop with an
automatic output and return action.
The following figure
illustrates the flow of action in a simple DATA step.
Figure 3.7 Flow of Action in a Typical DATA Step
During the Compilation Phase
When you submit ...
Get Step-by-Step Programming with Base SAS 9.4 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.