Components of SAS Programs
Data Step
Proc Step
A SAS Program may contain:
A DATA step
A PROC step
Combination of DATA and PROC step
Data Step:
Typically create or modify SAS data sets and they can also be used to produce custom-designed
reports
DATA steps are used to:
Put data into a SAS data set
Compute values
Check for and correct errors in data
Produce new SAS data sets by subsetting, merging, and updating existing data sets
Proc Step:
They pre-written routines that enable us to analyze and process the data in a SAS data set and topresent the data in the form of a report
PROC steps sometimes create new SAS data sets that contain the results of the procedure
PROC steps can list, sort, and summarize data
PROC steps are used to:
Create a report that lists the data
Produce descriptive statistics
Create a summary report
Produce plots and charts