Let's run a sample SAS program and view the results. This program creates a new SAS table from an existing SAS table. The new table includes only a subset of rows from the existing table.
The Sashelp library contains sample SAS tables that you can use as you learn about SAS. You can learn more about SAS libraries and accessing data. |
data work.teenstudents; set sashelp.class; where age > 12; run; proc print data=work.teenstudents; run;
The DATA step creates a new SAS table named Teenstudents in the temporary Work library. The Teenstudents table is created from rows in the Class table in which the value of Age is greater than 12.
The PROC PRINT step lists all of the data in the Teenstudents table.
The results in SAS Studio are easy to use, but what if you need them in a different format so that you can share them with someone else? By clicking the appropriate button on the Results toolbar, you can download your results as an HTML, PDF, or RTF file, and save them or open them in the default application for that format.