LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 28 Oct 2009 18:31:07 -0400
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: Exclude first 2 rows in Proc Import step
Comments:   To: wataridori@GMAIL.COM

I don't think that Shiva's code will work unless the file is actually just a delimited file, but with an xls extension.

You could, however, use an infile statement combined with DDE. E.g.,

OPTIONS NOXSYNC NOXWAIT; X '"c:\test\temp.xls"'; FILENAME thedata DDE 'Excel|c:\test\[temp.xls]sheet1!R3C1:R7C2'; data want; INFILE thedata NOTAB DLM='09'x DSD MISSOVER; INPUT ID name $; run;

HTH, Art -------- On Tue, 27 Oct 2009 06:41:18 -0700, Wataridori <wataridori@GMAIL.COM> wrote:

>Hi, > >I've never been able to use an infile command correctly with an .xls >file. Can you provide a sample of what it should look like using the >firstobs option? > >Thanks.


Back to: Top of message | Previous page | Main SAS-L page