Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Data from Excel Using Unix/SAS

Status
Not open for further replies.

nirmalraj

MIS
Apr 20, 2005
33
US
Hi All,

Is there a method of importing data values from an excel worksheet(s) using unix SAS.I know we can do it using PC sas but wanted to find out for Unix Sas.I heard there is a trick for doing this.Dont know how, so just shooting across.
btw I am using SAS version 9.1

Thanks,
Raj
 
Raj,
If you save the files as CSV you could have UNIX sas read those with the Dataset import statement.

Klaz
 
SAS Version 9 now allows you to read in from Excel files, I believe in the same way that you would with SAS/PC.
Code:
LIBNAME <libref> PATH='<location of file>'
                       <connection-options>
                       <libname-options>;
You should be able to find the details in the "What's new in SAS 9.1" section in the doco online.

Enjoy.
 
Chris,

Thanks, let me try the option.I was never aware of this.I'll post the outcome.

Raj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top