<?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 specified columns from excel sheet in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101633#M28532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no reason you can't simply keep or drop variables when calling proc import.&amp;nbsp; e.g., the following code reads a file that has seven variables (id, x, y, z, a, b and c), but only keeps id, x, y and z):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.want (keep=id x y z)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "C:\art\test.xls" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=xls REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 23:11:48 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-04-08T23:11:48Z</dc:date>
    <item>
      <title>Import only specified columns from excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101632#M28531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was trying to find out if it is possible to import only specific columns from a specified excel sheet, however couldn't find anything useful.&lt;/P&gt;&lt;P&gt;If it is possible, please give me examples,&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 21:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101632#M28531</guid>
      <dc:creator>Efka</dc:creator>
      <dc:date>2013-04-08T21:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Import only specified columns from excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101633#M28532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no reason you can't simply keep or drop variables when calling proc import.&amp;nbsp; e.g., the following code reads a file that has seven variables (id, x, y, z, a, b and c), but only keeps id, x, y and z):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.want (keep=id x y z)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "C:\art\test.xls" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=xls REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 23:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101633#M28532</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-04-08T23:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import only specified columns from excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101634#M28533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can specify RANGE option in PROC IMPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range='sheet1$f14:f1782';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-only-specified-columns-from-excel-sheet/m-p/101634#M28533</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2013-04-09T08:00:15Z</dc:date>
    </item>
  </channel>
</rss>

