Hi all!
Regarding the lesson 1 programming 2 (Data step processing: Compilation).
The theory is:
"To build the PDV, SAS passes through the DATA step sequentially, adding columns and their attributes. The SET statement in this program is listed first, so all of the columns from the storm_summary_small table are added to the PDV along with the required column attributes name, type, and length.
If there are any other statements that define new columns, those columns are also added to the PDV. In this code, the LENGTH statement defines the character column Ocean with a length of 8. StormLength is the last new column, and based on the arithmetic expression, it's defined as a numeric column with a length of 8."
The lecture note is:
what I want to focus is the column "Basin". I am wondering why the column Basin is at this position. Because SAS will go through all the codes sequentially. So, they will exclude the old Basin and add a new Basin column at the end of the yellow table in PDV when stopping by the data statement
Basin=upcase(Basin);
Thank you!