Learning SAS: SAS Discussion Session 1 - Data Import/Export
Learning SAS: SAS Discussion Session 1 - Data Import/Export
STUDYSAS Blog
Getting data into SAS
Is it character or numeric…………
• Reading data
• Importing data files
• Does Proc Import make any assumptions?
• Does Proc Import make any suggestions to itself to read
the data?
• Can we read all kind of data using Proc Import?
Various methods of reading the data
Output file….
• Now after reading the data you do what ever you want to
do with it , Slice it or Dice it or Smash it or Crush it or
Make a Soup with it or Make a dish with it.
• "More you harass the data, More are the Secrets it tells " .
So when you are done with Data you want to write it out .
This is out put file.
• It can be a simple SAS data set , *.csv file or *.rtf file or
Operating system Independent files *.xpt files (SAS
transport files)
Techniques of Exportin the data
Output file….
• Proc Export
• File
• Proc Copy
• Set
• .Xpt File
• ODS output out =
• Display Manager Command ( DEXPORT)
Exports into EXCEL file;
dm "DEXPORT work.one ‘filename.xls' replace";
Exports into .CSV file
dm "DEXPORT work.one ‘filename.csv”;
Questions?