<?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 a sheet from an Excel file into SAS. in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60993#M844</link>
    <description>Thanks Cynthia.</description>
    <pubDate>Thu, 13 Nov 2008 22:20:33 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-11-13T22:20:33Z</dc:date>
    <item>
      <title>Reading a sheet from an Excel file into SAS.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60991#M842</link>
      <description>Am a novice in SAS. Have a question that may be pretty basic to most of you.I am trying to read a particular sheet from an Excel file into SAS. I use SAS V8.2 on Windows XP.&lt;BR /&gt;
&lt;BR /&gt;
I used proc import  - &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;proc import datafile="c:/Shares.xls" out=test1;&lt;BR /&gt;
  sheet="SS_Shr";&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
but am getting the following error.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;ERROR: File _IMEX_.'SS_Shr$'n.DATA does not exist.&lt;BR /&gt;
ERROR: Import unsuccessful.  See SAS Log for details.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: PROCEDURE IMPORT used:&lt;BR /&gt;
      real time           0.15 seconds&lt;BR /&gt;
      cpu time            0.03 seconds&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
I also 'googled' and tried using - &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;PROC IMPORT OUT= WORK.auto1 &lt;BR /&gt;
            DATAFILE= "C:\Shares.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     SHEET="SS_Shr"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
proc print data=auto1;&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
but this doesn't work either. The following error message is displayed.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;771  PROC IMPORT OUT= WORK.auto1&lt;BR /&gt;
772              DATAFILE= "C:\Shares.xls"&lt;BR /&gt;
773              DBMS=EXCEL REPLACE;&lt;BR /&gt;
NOTE: The previous statement has been deleted.&lt;BR /&gt;
NOTE: The previous statement has been deleted.&lt;BR /&gt;
NOTE: The previous statement has been deleted.&lt;BR /&gt;
774       SHEET="SS_Shr";&lt;BR /&gt;
775       GETNAMES=YES;&lt;BR /&gt;
NOTE: SCL source line.&lt;BR /&gt;
776       MIXED=YES;&lt;BR /&gt;
          -----&lt;BR /&gt;
          180&lt;BR /&gt;
NOTE: SCL source line.&lt;BR /&gt;
777       USEDATE=YES;&lt;BR /&gt;
          -------&lt;BR /&gt;
          180&lt;BR /&gt;
NOTE: SCL source line.&lt;BR /&gt;
778       SCANTIME=YES;&lt;BR /&gt;
          --------&lt;BR /&gt;
          180&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
&lt;BR /&gt;
779  RUN;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Can any of you know what I am missing? I am just trying to import a sheet from an Excel file into SAS.&lt;BR /&gt;
&lt;BR /&gt;
Thx.</description>
      <pubDate>Wed, 12 Nov 2008 18:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60991#M842</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-12T18:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a sheet from an Excel file into SAS.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60992#M843</link>
      <description>Hi:&lt;BR /&gt;
  Refer to these Tech Support notes. There is a special way to refer to sheets:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/2/529.html" target="_blank"&gt;http://support.sas.com/kb/2/529.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/1/849.html" target="_blank"&gt;http://support.sas.com/kb/1/849.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  cynthia</description>
      <pubDate>Wed, 12 Nov 2008 18:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60992#M843</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-11-12T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a sheet from an Excel file into SAS.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60993#M844</link>
      <description>Thanks Cynthia.</description>
      <pubDate>Thu, 13 Nov 2008 22:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Reading-a-sheet-from-an-Excel-file-into-SAS/m-p/60993#M844</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-13T22:20:33Z</dc:date>
    </item>
  </channel>
</rss>

