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 (April 2003, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 29 Apr 2003 10:23:16 -0400
Reply-To:   Kevin <kterry@ATT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Kevin <kterry@ATT.COM>
Organization:   ITS - NetNews
Subject:   Re: Importing Excel data into SAS

The easiest way to fix this problem would be to save the .xls file as a .csv and read it into SAS in a general infile statemtent where you can contol the format of the variables.

"Brett Plummer" <plummer@hsmgroup.com> wrote in message news:mxDma.945$uT5.40499@news.uswest.net... > In Excel, the variables are in number format and not text. But when using > the code below, all of the variables are brought into SAS in STRING format. > How can I input them as numeric instead? > > PROC IMPORT > DATAFILE = 'C:\FILES\DATA.xls' > OUT = sasdata > DBMS = EXCEL > REPLACE ; > GETNAMES=YES ; > RUN; > > > Thanks, > Brett > >


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