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
What is the purpose of trailing @ and @@? How do you use them?
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What are the differences between sum function and using “+” operator?
Mention what are the data types does SAS contain?
What is the difference between SAS functions and procedures?
how many types prompting framework can be broken down to? : Sas-bi
How do dates work in SAS data?
What do you know about sas and what we do? : sas-grid-administration
what other sas products have you used and consider yourself proficient in using? : Sas programming
How does proc sql work?
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
Describe 5 ways to do a “table lookup” in SAS?
how does sas handle missing values in functions? : Sas programming
what are the component of range? : Sas-bi
What are the table names in oracle database...?