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: Compilation

DATA step processing: Compilation

- [Instructor] Let's look at the compilation phase in a little more detail. First, SAS runs through your program to check for syntax errors. If there are no errors, SAS builds a critical area of memory called the Program Data Vector or PDV for short. The PDV includes each column that you've referenced in the data step and its attributes including the column name, type and length. If this representation of the PDV looks like a one-row table, that's because the PDV is used in the execution phase to hold and manipulate one row of data at a time. Also in the compilation phase, SAS establishes rules for the PDV based on your code such as which columns will be dropped or which rows from the input table will be read into the PDV. Finally, SAS creates the descriptor portion or the table metadata. Let's step through the compilation process with some example code. This data statement creates the output table storm_complete in…

Contents