<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using data from excel- Help please?? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51058#M13960</link>
    <description>you can save your Excel file in csv format, then use the INFILE.</description>
    <pubDate>Sat, 16 Apr 2011 01:14:42 GMT</pubDate>
    <dc:creator>piggy</dc:creator>
    <dc:date>2011-04-16T01:14:42Z</dc:date>
    <item>
      <title>Using data from excel- Help please??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51056#M13958</link>
      <description>I am a student and new to SAS. I have a pretty large dataset in Excel and I am trying to duplicate some analyses my advisor ran after typing her dataset right into excel.  &lt;BR /&gt;
&lt;BR /&gt;
This is how I imported my data from Excel:&lt;BR /&gt;
PROC IMPORT OUT= WORK.dissertation &lt;BR /&gt;
            DATAFILE  = "C:\Documents and Settings\Me\My Documents\dissertation.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE; stopover; &lt;BR /&gt;
     SHEET="Sheet1; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This is her data statements that she ran before doing ANOVAS:&lt;BR /&gt;
DATA rate0 ;&lt;BR /&gt;
INFILE 'H:\Data\ms-ratings-dats.TXT'' ;&lt;BR /&gt;
INPUT var1 1-3 var2 5 var3 7-8 var4 10-12 var5 14 var6 16 var7 18 var8 20;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
From there, it looks like she sets the value of some of the variables and then runs the ANOVA.&lt;BR /&gt;
&lt;BR /&gt;
Is there a comparable INFILE statement I should be running with my Excel data that would make my data ready for analysis?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
eta: when I just replace the TXT file name with my excel file, I get errors; it reads none of the variables.

Message was edited by: trb</description>
      <pubDate>Fri, 15 Apr 2011 14:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51056#M13958</guid>
      <dc:creator>trb</dc:creator>
      <dc:date>2011-04-15T14:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from excel- Help please??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51057#M13959</link>
      <description>That infile statement is reading a  data set from a text file. &lt;BR /&gt;
&lt;BR /&gt;
If you're trying to use the data you imported instead of the text file, use the line&lt;BR /&gt;
set dissertation; &lt;BR /&gt;
&lt;BR /&gt;
instead of the infile and input lines. You'll probably have to rename variables as well. &lt;BR /&gt;
&lt;BR /&gt;
I'll also mention I haven't seen a stopover option before in proc import...I'll have to google that one. &lt;BR /&gt;
&lt;BR /&gt;
You might want to review some sas basics before playing around with this stuff though. I highly recommend the SAS UCLA tutorials online for beginners.</description>
      <pubDate>Fri, 15 Apr 2011 17:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51057#M13959</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-04-15T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from excel- Help please??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51058#M13960</link>
      <description>you can save your Excel file in csv format, then use the INFILE.</description>
      <pubDate>Sat, 16 Apr 2011 01:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51058#M13960</guid>
      <dc:creator>piggy</dc:creator>
      <dc:date>2011-04-16T01:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from excel- Help please??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51059#M13961</link>
      <description>Thank you!  I was able to run my ANOVAS with your help. And thanks for referring me to the user-friendly tutorials!</description>
      <pubDate>Mon, 18 Apr 2011 05:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51059#M13961</guid>
      <dc:creator>trb</dc:creator>
      <dc:date>2011-04-18T05:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from excel- Help please??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51060#M13962</link>
      <description>Thank you!  I was able to run my ANOVAS with your help. And thanks for referring me to the user-friendly tutorials!</description>
      <pubDate>Mon, 18 Apr 2011 05:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-data-from-excel-Help-please/m-p/51060#M13962</guid>
      <dc:creator>trb</dc:creator>
      <dc:date>2011-04-18T05:39:05Z</dc:date>
    </item>
  </channel>
</rss>

