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
08-28-2012 04:37 AM
Thank you for the answer.
With proc print, i am getting expected output along with junk. How to get rid of junk?
09-08-2012 01:47 AM
Can you provide your spreadsheet and points out the output junk which you are getting?
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;