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
Can you explain the process of calendar?
Mention the difference between ceil and floor functions in sas?
Have you ever used the SAS Debugger?
how would you create multiple observations from a single observation? : Sas programming
What is the basic structure of a sas program?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
What are the 3 components in sas programming?
How to read an input file in sas?
What is the difference between input and infile statement?
How we can create SAS USER DEFINED CODE?
Describe crosslist option in tables statement?
What is the basic syntax of a sas program?
How to create an external dataset with sas code?
How to create a permanent sas data set?
what are the benefits of data integration? : Sas-di