From the course: SAS® 9.4 Cert Prep: Part 08 Controlling Data Step Processing

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

DATA step processing

DATA step processing

- [Narrator] The order of some statements in the DATA step seems to make a difference. But it seems that other statements can go anywhere. Why is that? To truly understand the DATA step and take advantage of its many powerful and unique features, you must understand exactly how the DATA step processes data behind the scenes. The DATA step is not a mysterious black box, it follows a very logical process that is easy to customize to your data processing needs. The first important point to understand is that when you run a DATA step it goes through two phases, compilation and execution. In the compilation phase, SAS basically prepares the code and establishes data attributes and the rules for execution. In the execution phase, SAS follows those rules to read, manipulate and write data. If that still sounds like a black box, don't worry, it's all going to be clear soon.

Contents