SAS Slides 2: Basics of SAS Programming Language
SAS Slides 2: Basics of SAS Programming Language
info@sastechies.com
http://www.sastechies.com
DATA steps typically create or modify SAS data sets, but they can also be
used to produce custom-designed reports. For example, you can use DATA
steps to
PROC (procedure) steps typically analyze and process data in the form
of a SAS data set, and they sometimes create SAS data sets that contain
the results of the procedure. PROC steps control a library of prewritten
routines (procedures) that perform tasks on SAS data sets, such as listing,
sorting, and summarizing data. For example, you can use PROC steps to
◦ print a report
◦ produce descriptive statistics
◦ create a tabular report
◦ produce plots and charts.
Temporary
SAS File Temporary
SAS File,
One-Level
Name
Value
CHAR 8 bytes 32767 (32Kb)
NUM 8 bytes any bytes
A variable's type determines how SAS software displays missing values for a
variable.
For character variables such as Name (shown below), a blank represents a missing
value.
For numeric variables such as Age (shown below), a period represents a missing value.
12/07/41 12/07/1941
18Dec15 18Dec2015
04/15/30 04/15/1930
15Apr95 15Apr1995
Where used:
data finance.newloan;
set finance.records(drop=amount rate);
TotalLoan+payment;
if code='1' then Type='Fixed';
else Type='Variable'; run;