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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
The CORR and FREQ procedures4m 47s
-
(Locked)
The MEANS and UNIVARIATE procedures3m 22s
-
(Locked)
Demo: Ames home sales data exploration4m 15s
-
(Locked)
Selecting output to print and suppress2m 45s
-
(Locked)
Demo: Selecting output with ODS TRACE or the online documentation3m 45s
-
(Locked)
Saving results to new SAS data sets2m 22s
-
(Locked)
Demo: Creating data tables with ODS6m 9s
-
(Locked)
Creating global macro variables: Manually6m 35s
-
(Locked)
Creating global macro variables: Automating the process3m 26s
-
(Locked)
Demo: Creating and using macro variables6m 42s
-
(Locked)
Macro programming3m 56s
-
(Locked)
Creating macro programs with parameters5m 9s
-
(Locked)
Creating macro programs with macro statements: A business example4m 28s
-
(Locked)
Demo: A macro program to generate data, summary statistics, and plots6m 46s
-
(Locked)
Demo: A macro program for iterative processing8m 37s
-