Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Excel and SAS

Excel and SAS

Ratings: (0)|Views: 6 |Likes:
Published by Amitmse

More info:

Published by: Amitmse on Jun 02, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

04/01/2012

pdf

text

original

 
Excel and SAS
How to import an Excel file into SAS
Make sure the desired Excel File is closed.Open SAS and under the
file
menu select
Import Data
The following window should open. Select the type of file and the version you wish to import— the default is MS Excel version 97 or 2000.Then click 
next
. The next window you will see asks you to locate the file you wish to import:© 2004 Rita Carreira1Select “Import Data”
 
Excel and SASBrowse to locate the file you wish to import and then click on
options
. This will enable you toselect the worksheet in Excel where the data is located.Select the worksheet desired. (Note: By default, SAS assumes that the variable names are storedin the first row of the Excel Worksheet. If that is not the case, remove the check mark next to“Column names in first row.”) Then click 
OK 
. Then click 
next
.© 2004 Rita Carreira2
 
Excel and SASIn the next screen you will type in the name that you want SAS to use to identify the dataset youare importing (I called it
sprinkler
) and select the library you want SAS to store it in (the defaultlibrary is
Work 
).Then click 
finish
or 
next
. If you click finish, the new dataset will be stored in the Work libraryand you can start working with it; but if you terminate SAS, the dataset will be deleted. If youclick 
next
, on the following window, you have the option of telling SAS to create a programwith the statements that allow you import the file just by running the program. This is advisableto do. For simplicity, call this program
import.sas
and store it in the desktop:Click 
finish
and then go to the desktop and open the file SAS created:© 2004 Rita Carreira3

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->