There are times when we need to create a new variable by using variables that reside in separate data files. Circumstances such as these require that we merge, or join, two datasets together.
IF DO/ ELSE DO Programming in SAS
IF / ELSE DO syntax can help you remove redundant code that comes along with standard IF statements.
IF / ELSE Programming in SAS
IF and Else statements offer an easy way to recode variables in SAS datasteps.
Subsetting IF and WHERE Statements
The subsetting IF and WHERE statements are the primary ways through which you filter out records from input data.
Combining Steps with PROC SORT
Many SAS procedures offer ways to shorten your code.
A Gentle Introduction to the Datastep, Pt. 2
SAS datasteps can output datasets as permanent, and create multiple datasets with minimal code.
A Gentle Introduction to the Data Step
Datastepping is the fundamental input/output method SAS uses to process data.
Commenting In SAS
Writing comments is the quickest way to document programs and makes sharing code easier.
The Libname Statement
Libnames are the primary tool through which SAS inputs and outputs data.