<?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: Reading in an excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33087#M6397</link>
    <description>Do you have a LIBNAME statement pointing to your "external" Excel file with the appropriate "engine" specified?  SAS needs this information in order to access the file.&lt;BR /&gt;
&lt;BR /&gt;
Recommend SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  technical papers on this topic - here is a Google advanced search argument you can use to find some matching documentation based on the posted topic:&lt;BR /&gt;
&lt;BR /&gt;
libname excel engine read sheet site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sun, 17 May 2009 16:39:07 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-17T16:39:07Z</dc:date>
    <item>
      <title>Reading in an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33086#M6396</link>
      <description>Good morning,&lt;BR /&gt;
&lt;BR /&gt;
As you know I am new to SAS, but trying to learn.&lt;BR /&gt;
&lt;BR /&gt;
I just created a new Library with an excel file using the point and click method.  I now have a new library called neuneu.  It has 3 files in it sheet1$, sheet2$, and sheet3$.  When I double click on sheet1$ is contains the data.  However, I cannot reference it in a Program file.  &lt;BR /&gt;
&lt;BR /&gt;
I get the following error.  It is obviously looking for a .data file.  How do I read this file.&lt;BR /&gt;
&lt;BR /&gt;
1   proc print data=neuneu.sheet1$;&lt;BR /&gt;
                                -&lt;BR /&gt;
                                22&lt;BR /&gt;
                                 -&lt;BR /&gt;
                                 200&lt;BR /&gt;
ERROR: File NEHU.sheet1.DATA does not exist.&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: ;, (, DATA, DOUBLE, HEADING, LABEL, N,&lt;BR /&gt;
              NOOBS, OBS, ROUND, ROWS, SPLIT, STYLE, UNIFORM, WIDTH.&lt;BR /&gt;
ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Sun, 17 May 2009 15:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33086#M6396</guid>
      <dc:creator>Doc</dc:creator>
      <dc:date>2009-05-17T15:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33087#M6397</link>
      <description>Do you have a LIBNAME statement pointing to your "external" Excel file with the appropriate "engine" specified?  SAS needs this information in order to access the file.&lt;BR /&gt;
&lt;BR /&gt;
Recommend SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  technical papers on this topic - here is a Google advanced search argument you can use to find some matching documentation based on the posted topic:&lt;BR /&gt;
&lt;BR /&gt;
libname excel engine read sheet site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 17 May 2009 16:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33087#M6397</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-17T16:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33088#M6398</link>
      <description>I get really confused when tying to read those tech support pages.  But I am trying and will get better.&lt;BR /&gt;
&lt;BR /&gt;
When I created the library using the point and click I chose the excel engine.  Do I have to add something else to my program to access the data?</description>
      <pubDate>Sun, 17 May 2009 16:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33088#M6398</guid>
      <dc:creator>Doc</dc:creator>
      <dc:date>2009-05-17T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33089#M6399</link>
      <description>Hi:&lt;BR /&gt;
  This Tech Support page is very clear:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/509.html" target="_blank"&gt;http://support.sas.com/kb/24/509.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
They show this example, if you're using the Excel Libname engine:&lt;BR /&gt;
[pre]&lt;BR /&gt;
      &lt;BR /&gt;
 LIBNAME XLS 'C:\Excel Files\scores.xls';&lt;BR /&gt;
 &lt;BR /&gt;
   DATA NEW;&lt;BR /&gt;
   SET XLS.'SHEET1$'n;&lt;BR /&gt;
   RUN;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
which means that a PROC PRINT for the same sheet would be:&lt;BR /&gt;
                         &lt;BR /&gt;
[pre]&lt;BR /&gt;
   proc print data=xls.'sheet1$'n;&lt;BR /&gt;
      title 'reading an excel sheet';&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
             &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
ps...if you are using SAS Enterprise Guide, then you might find more EG help by posting in the EG forum.</description>
      <pubDate>Sun, 17 May 2009 17:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33089#M6399</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-17T17:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33090#M6400</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
You are the greatest.  I will give this a try and let you know.&lt;BR /&gt;
&lt;BR /&gt;
Will have to be tomorrow.  We breed Chinese crested dogs and the puppies need attention.&lt;BR /&gt;
&lt;BR /&gt;
I will let you know.&lt;BR /&gt;
&lt;BR /&gt;
Thank you for monitoring these forums as well as you do!</description>
      <pubDate>Sun, 17 May 2009 17:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-an-excel-file/m-p/33090#M6400</guid>
      <dc:creator>Doc</dc:creator>
      <dc:date>2009-05-17T17:17:24Z</dc:date>
    </item>
  </channel>
</rss>

