How to read multiple excel sheets from a single excel file
at once????

Answer Posted / paul

we can read by a simple libname access method:

eg:
libname exlbook 'd:\excel file location\file name.xls';
proc copy in=exlbook out=work;
run;

/*here i am coying the entire excel workbook to work library
in sas, so we can get all sheets at a time.
if we use proc import we can import a single sheet at a time
By the above method we can dump all table from a MS-access database or oracle database or any other db.
only we have to change the connection details, i.e.,

excel --> file name with path
access --> db name with path
oracle/any other RDBMS --> user=***, password=****,
path=**** or host=****

another advantage of this method is :
the library will not occupy any memory on hard disc
it only acts as a repository which save memory and
processing time */

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the function of substr in sas? : Sas-administrator

770


Explain by-group processing?

786


How necessary is it to be creative in your work?

2226


How do you use the do loop if you don’t know how many times you should execute the do loop?

1002


How do dates work in sas?

854


How many data types are there in SAS?

809


Intern stastical programmer written test

497


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

5185


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

911


what are input dataset and output dataset options? : Sas programming

799


what is sas metadata server? : Sas-di

825


describe how to adjust the performance of data integrator? : Sas-di

761


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4131


How are numeric and character missing values represented internally?

1385


What are SAS/ACCESS and SAS/CONNECT?

862