MGS 8040 Data Mining
Dr. Satish Nargundkar
Basic SAS Instructions
Creating Folders
Folder Name |
What it is for |
DATA (point the word SAVE in the
start.sas program to this folder) |
To store SAS data files
like data1.sd2, xtra1.sd2 |
FORMATS (point the word LIBRARY in
the start.sas program to this folder) |
To store the file called formats.sc2,
a compiled list of formats. This file is not readable as text. Do not try to
open it. |
PROGRAMS |
To store programs that you
write, and the sample programs I have provided, like start.sas, formats.sas,
freq.sas, reg1.sas, etc. Programs are used to call up data from the
DATA folder and associate that data with the formats from the FORMATS folder. |
OUTPUT |
To store the output files
you create when you run programs in SAS. Start with an empty folder. Output
files are typically either .lst
files or .html files. The files in the output folder are what you will
post as your assignments. |
Using SAS:
·
Point the word
SAVE to the location of the DATA folder and
·
Point the word
LIBRARY to the location of the FORMATS folder on your machine.
·
Save the edited
file (replace the old start.sas with this version) back in the PROGRAMS folder.
·
Submit (run) the
program (hit F8, or click on the ‘running man’ icon).
Hereafter,
you will refer in SAS to any dataset in your data folder as SAVE.<filename>,
and the word LIBRARY will help you call on formats that you have defined.