From the course: SAS Programming for R Users, Part 2

Unlock this course with a free trial

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

Saving results to new SAS data sets

Saving results to new SAS data sets - SAS Tutorial

From the course: SAS Programming for R Users, Part 2

Saving results to new SAS data sets

- [Narrator] Next, I want to use the Output Delivery System to create new data tables from the PROC step results tables, and I also want to be able to choose specific summary statistics to include in the tables. Perhaps when you ran the univariate procedure, you generated the basic statistical measures table, and you also wanted to save it as a new SAS data set. To do so, we'll use the ODS OUTPUT statement, prior to running our procedure. In the ODS OUTPUT statement, you'll first specify the object name, which is the same table name that we've used in ODS select, and then you'll set it equal to a new SAS data set name. You'll notice here I'm calling it SP_BasicMeasures. SP is going to be for sale price, the variable I'm analyzing in the univariate procedure. It looks little bit peculiar coming from R that the new data set name is on the right side of the assignment statement, and the object name is actually on the left, but just be aware of that. And you can specify as many…

Contents