<?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: proc import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309202#M66485</link>
    <description>&lt;P&gt;What is the question here exactly? &amp;nbsp;To import from Excel your options are proc import, libname excel, saving the file to a proper formats such as CSV and datastep import - all of which there are thousands of examples on here. &amp;nbsp;To limit the number of observations, just read the file, then do:&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set have (obs=...);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To read multiple sheets, use the sheetname="..." option in proc import, or save each sheet to a separate CSV, or use libname excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 08:24:19 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-11-04T08:24:19Z</dc:date>
    <item>
      <title>proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309182#M66478</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while running this program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="Z:\Users\Ramanathan\test1.xls" out=ab dbms=excel replace;&lt;BR /&gt;sheet="xdm";&lt;BR /&gt;getnames=yes;&lt;BR /&gt;datarow=4;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting error in datarow statement. I don't know why? can anyone explain me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 04:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309182#M66478</guid>
      <dc:creator>Sabharish</dc:creator>
      <dc:date>2016-11-04T04:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309183#M66479</link>
      <description>&lt;P&gt;Is datarow supported for DBMS Excel? It doesn't look like it.&lt;/P&gt;
&lt;P&gt;What version of SAS do you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's&amp;nbsp;sometimes hard to navigate the documentation for PROC Import.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0msy4hy1so0ren1acm90iijxn8j.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#n0msy4hy1so0ren1acm90iijxn8j.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 05:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309183#M66479</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-04T05:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309190#M66480</link>
      <description>&lt;P&gt;hi reza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sas 9.2.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 06:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309190#M66480</guid>
      <dc:creator>Sabharish</dc:creator>
      <dc:date>2016-11-04T06:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309191#M66481</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to read multiple sheet from a excel file with xsl engine. And how to restrict the number of obs in the dataset while importing from an excel file.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 06:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309191#M66481</guid>
      <dc:creator>Sabharish</dc:creator>
      <dc:date>2016-11-04T06:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309193#M66483</link>
      <description>&lt;P&gt;Try a libname method with proc copy or datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assign a libname and then use PROC datasets with a copy statement to copy sheets to library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you want to restrict observations? What's your logic?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 06:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309193#M66483</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-04T06:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309202#M66485</link>
      <description>&lt;P&gt;What is the question here exactly? &amp;nbsp;To import from Excel your options are proc import, libname excel, saving the file to a proper formats such as CSV and datastep import - all of which there are thousands of examples on here. &amp;nbsp;To limit the number of observations, just read the file, then do:&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set have (obs=...);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To read multiple sheets, use the sheetname="..." option in proc import, or save each sheet to a separate CSV, or use libname excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 08:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309202#M66485</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-04T08:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309223#M66488</link>
      <description>&lt;PRE&gt;
Try
startrow=4

or multiple range option:
range='A1:D10';
range='A10:D20';

&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-import/m-p/309223#M66488</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-04T10:32:57Z</dc:date>
    </item>
  </channel>
</rss>

