<?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: Import only spreadsheet from .xls to sas in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-only-spreadsheet-from-xls-to-sas/m-p/5419#M1722</link>
    <description>Hi:&lt;BR /&gt;
  With the IMPORT procedure: &lt;A href="http://support.sas.com/kb/5/458.html" target="_blank"&gt;http://support.sas.com/kb/5/458.html&lt;/A&gt;&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc import datafile="c:\myfiles\Accounts.xls"&lt;BR /&gt;
             out=sasuser.accounts;    &lt;BR /&gt;
       sheet="Prices";&lt;BR /&gt;
       getnames=no;&lt;BR /&gt;
  run;&lt;BR /&gt;
  &lt;BR /&gt;
  proc print data=sasuser.accounts(obs=10);&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
But, your code snippet shows the MISSOVER option -- which is not relevant to PROC IMPORT. If you are using ODBC or DDE, the syntax is shown below:&lt;BR /&gt;
&lt;BR /&gt;
Libname Engine: &lt;A href="http://support.sas.com/kb/12/628.html" target="_blank"&gt;http://support.sas.com/kb/12/628.html&lt;/A&gt;&lt;BR /&gt;
  [pre]&lt;BR /&gt;
libname mylib odbc dsn=Excel;&lt;BR /&gt;
  &lt;BR /&gt;
  proc print data=mylib.'This Sheet$'n; run;&lt;BR /&gt;
  &lt;BR /&gt;
  data mylib.new;&lt;BR /&gt;
    set mylib.'This Sheet$'n;&lt;BR /&gt;
  run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
    &lt;BR /&gt;
  DDE: &lt;A href="http://support.sas.com/kb/2/929.html" target="_blank"&gt;http://support.sas.com/kb/2/929.html&lt;/A&gt;&lt;BR /&gt;
     [pre]&lt;BR /&gt;
 filename fileref dde 'Excel|[Book1]Sheet1!R1C1:R1C5';&lt;BR /&gt;
  infile filref missover dsd notab dlm='09'x;&lt;BR /&gt;
  input a b c d e;&lt;BR /&gt;
  run;&lt;BR /&gt;
  quit;&lt;BR /&gt;
    [/pre]&lt;BR /&gt;
 &lt;BR /&gt;
If you are still having problems with your program, your best bet for help is to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 08 Nov 2007 15:31:22 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-11-08T15:31:22Z</dc:date>
    <item>
      <title>Import only spreadsheet from .xls to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-only-spreadsheet-from-xls-to-sas/m-p/5418#M1721</link>
      <description>Hi! I've a problem.&lt;BR /&gt;
I need to import unified excel files to sas using standart import procedure (range of rows, columns' formats etc.)&lt;BR /&gt;
But if save the code I can operate with native file, not others.&lt;BR /&gt;
If I edit code pointing another file, how can I point exact spreadsheet?&lt;BR /&gt;
&lt;BR /&gt;
INFILE "D:\path\test.xls" &lt;BR /&gt;
		DELIMITER='*'&lt;BR /&gt;
		MISSOVER&lt;BR /&gt;
		DSD&lt;BR /&gt;
I</description>
      <pubDate>Thu, 08 Nov 2007 08:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-only-spreadsheet-from-xls-to-sas/m-p/5418#M1721</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-08T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import only spreadsheet from .xls to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-only-spreadsheet-from-xls-to-sas/m-p/5419#M1722</link>
      <description>Hi:&lt;BR /&gt;
  With the IMPORT procedure: &lt;A href="http://support.sas.com/kb/5/458.html" target="_blank"&gt;http://support.sas.com/kb/5/458.html&lt;/A&gt;&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc import datafile="c:\myfiles\Accounts.xls"&lt;BR /&gt;
             out=sasuser.accounts;    &lt;BR /&gt;
       sheet="Prices";&lt;BR /&gt;
       getnames=no;&lt;BR /&gt;
  run;&lt;BR /&gt;
  &lt;BR /&gt;
  proc print data=sasuser.accounts(obs=10);&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
But, your code snippet shows the MISSOVER option -- which is not relevant to PROC IMPORT. If you are using ODBC or DDE, the syntax is shown below:&lt;BR /&gt;
&lt;BR /&gt;
Libname Engine: &lt;A href="http://support.sas.com/kb/12/628.html" target="_blank"&gt;http://support.sas.com/kb/12/628.html&lt;/A&gt;&lt;BR /&gt;
  [pre]&lt;BR /&gt;
libname mylib odbc dsn=Excel;&lt;BR /&gt;
  &lt;BR /&gt;
  proc print data=mylib.'This Sheet$'n; run;&lt;BR /&gt;
  &lt;BR /&gt;
  data mylib.new;&lt;BR /&gt;
    set mylib.'This Sheet$'n;&lt;BR /&gt;
  run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
    &lt;BR /&gt;
  DDE: &lt;A href="http://support.sas.com/kb/2/929.html" target="_blank"&gt;http://support.sas.com/kb/2/929.html&lt;/A&gt;&lt;BR /&gt;
     [pre]&lt;BR /&gt;
 filename fileref dde 'Excel|[Book1]Sheet1!R1C1:R1C5';&lt;BR /&gt;
  infile filref missover dsd notab dlm='09'x;&lt;BR /&gt;
  input a b c d e;&lt;BR /&gt;
  run;&lt;BR /&gt;
  quit;&lt;BR /&gt;
    [/pre]&lt;BR /&gt;
 &lt;BR /&gt;
If you are still having problems with your program, your best bet for help is to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 08 Nov 2007 15:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-only-spreadsheet-from-xls-to-sas/m-p/5419#M1722</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-11-08T15:31:22Z</dc:date>
    </item>
  </channel>
</rss>

