SAS Notes

Author

Doug Hemken

Published

February 15, 2024

Basics

Working with SAS: Interfaces to SAS, SAS Files, and the SAS Language.

There are three main themes to this first part: using a SAS interface, working with SAS files, and writing programs in the SAS language.

Additional SAS Documentation

Read through a part of the SAS 9.4 Language Reference Concepts, Introduction to the SAS Windowing Environment. Look especially at the section on Main Windows in the SAS Windowing Environment.

Common Statistical Procedures

Graphics

Three graphics systems

Finding graphics commands

Plots

Charts

Building Data Sets: the DATA step

Reading Data into SAS

Subsets and Merges

Subsets

Merges

Exercise

Answer

Output Data Sets

Central Limit Demonstration

Arrays

Array exercises

Macros

Writing SAS Documentation

Some notes on how to write up SAS documentation using Markdown and RMarkdown. This is primarily geared toward writing web pages and PDF handouts that include SAS code, SAS output, and explanatory text.

This same system could be used to produce simple Word documents.

Notes in need of revision:

Running R from SAS