
/*******************************************************************\
| Copyright (C) 1997 by SAS Institute Inc., Cary, NC, USA. |
| |
| SAS (R) is a registered trademark of SAS Institute Inc. |
| |
| SAS Institute does not assume responsibility for the accuracy of |
| any material presented in this file. |
\*******************************************************************/
/* This example uses PROC IMPORT to create a SAS Dataset (sasuser.mydata)
from the Comma Separated Variable (CSV) file named /myfiles/mydata.csv.
This is a useful procedure when you have something like an Excel
spreadsheet that can not be directly read from Unix SAS. You can use
Excel to save the file in CSV format, and then Import the file
into SAS using this procedure. You could also use the File-->Import
Wizard as well. */
proc import datafile="/myfiles/mydata.csv"
out=sasuser.mydata
dbms=csv
replace;
getnames=yes;
run;
options nodate ps=60 ls=80;
proc print data=mydata;
run;
|