The DS2 Code snippet provides a template for a DS2
program. DS2 is a SAS programming language that is
appropriate for advanced data manipulation. DS2 is
included with Base SAS and shares core features with the
SAS DATA step. DS2 exceeds the DATA step by adding
variable scoping, user-defined methods, ANSI SQL data
types, and user-defined packages. The DS2 SET
statement accepts embedded FedSQL syntax, and the run-
time-generated queries can exchange data interactively
between DS2 and any supported database. This allows
SQL preprocessing of input tables, which effectively
combines the power of the two languages. For more
information, see SAS DS2 Language Reference.
The DS2 Thread snippet provides a template for a DS2
threaded program. Typically, DS2 code runs sequentially.
That is, one process runs to completion before the next
process begins. It is possible to run more than one process
concurrently, using threaded processing. In threaded
processing, each concurrently executing section of code is
said to be running in a thread. For more information, see
SAS DS2 Language Reference.
Generate CSV File
The Generate CSV File snippet enables you to export SAS
data as a comma-separated text file.
Generate PowerPoint Slide
The Generate PowerPoint Slide snippet enables you to
stream Microsoft PowerPoint output to your web browser.
Generate XML File
The Generate XML File snippet enables you to export SAS
data as an XML file that you can view in your web browser.
Simulate Linear Regression
The Simulate Linear Regression Data snippet creates an
input data source that you can use for linear regression
analysis. Linear regression analysis tries to assign a linear
function to your data by using the least squares method.
Simulate One-Way ANOVA
The Simulate One-Way ANOVA Data snippet creates an
input data source that considers one treatment factor with
three treatment levels. When you analyze this data by
using the One-Way ANOVA task, the goal is to test for
differences among the means of the levels and to quantify
Chapter 2 2 / / Working with Programs