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 metadata? : Sas-bi
what are some differences between proc summary and proc means? : Sas programming
describe about metadata object? : Sas-di
name the scheduler for scheduling job and explain the scheduler? : Sas-di
What is the use of the %include statement?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
what versions of sas have you used (on which platforms)? : Sas programming
Mention the difference between ceil and floor functions in sas?
What are the default statistics that proc means produce?
what is transformation in sas data integration? : Sas-di
What is program data vector (pdv)?
how to do user inputs and command line arguments in sas?
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
what are sas bi dashboard components? : Sas-bi
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?