08-28-2012 01:12 AM
I am trying to import all the sheets in a excel file using libname statement. But getting errors
libname klm ("C:\Documents and Settings\devarayulu.balanagu\Des
This statement has created four datasets in libref dsd.
if we right click on these tables name feild is blank.
Actually what are these datafiles, shall we can use as sas datasets. if so why the following code is not working?
proc print data=klm.Change_status_Rev2;
ERROR: File KLM.Change_status_Rev2.DATA does not exist
Can anyone help?
08-28-2012 04:02 AM
Try this code:
libname klm excel "C:\Documents and Settings\devarayulu.balanagu\Des
Now hopefully u'll get these files in the library klm:
Next write the proc print statement:
Proc print data = klm."Change_status_Rev1$"n;
Hope this helps.Good luck
09-09-2012 12:06 PM
What you are getting is the whole content of the Change_status_Rev1 datasheet. You can also specify a range of cells, as follows :
Proc print data = klm.'Change_status_Rev1$A1:E99'n;