<?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 PROC Import specificities excel file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-specificities-excel-file/m-p/321564#M61968</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to import some specific type of Excel file into SAS 9.4.&lt;/P&gt;&lt;P&gt;Specific because nothing is done very easily and I can't ask the provider of the file to change it &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let say that my Excel file has a number of column equals to "columnnumber", and&amp;nbsp;number of rows equals to "rownumber"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I know:&lt;/P&gt;&lt;P&gt;- columnnumber can change from one file to each other, but always &amp;gt; 10&lt;/P&gt;&lt;P&gt;- rownumber can change from one file to each other&lt;/P&gt;&lt;P&gt;- the data fields name are&amp;nbsp;on row 2, from column 2 to 10.&lt;/P&gt;&lt;P&gt;- the data I need to import is&amp;nbsp;just below the data fields name (so it begins on row 3, from column 2 to 10)&lt;/P&gt;&lt;P&gt;- the data ending row can change and there can be a lot of false rows at the end of the excel file with nonsense things written or blanks.... The only thing I&amp;nbsp;know: I need to stop recording on the first blank cell on column 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2016 11:33:41 GMT</pubDate>
    <dc:creator>Planck</dc:creator>
    <dc:date>2016-12-29T11:33:41Z</dc:date>
    <item>
      <title>PROC Import specificities excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-specificities-excel-file/m-p/321564#M61968</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to import some specific type of Excel file into SAS 9.4.&lt;/P&gt;&lt;P&gt;Specific because nothing is done very easily and I can't ask the provider of the file to change it &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let say that my Excel file has a number of column equals to "columnnumber", and&amp;nbsp;number of rows equals to "rownumber"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I know:&lt;/P&gt;&lt;P&gt;- columnnumber can change from one file to each other, but always &amp;gt; 10&lt;/P&gt;&lt;P&gt;- rownumber can change from one file to each other&lt;/P&gt;&lt;P&gt;- the data fields name are&amp;nbsp;on row 2, from column 2 to 10.&lt;/P&gt;&lt;P&gt;- the data I need to import is&amp;nbsp;just below the data fields name (so it begins on row 3, from column 2 to 10)&lt;/P&gt;&lt;P&gt;- the data ending row can change and there can be a lot of false rows at the end of the excel file with nonsense things written or blanks.... The only thing I&amp;nbsp;know: I need to stop recording on the first blank cell on column 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 11:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-specificities-excel-file/m-p/321564#M61968</guid>
      <dc:creator>Planck</dc:creator>
      <dc:date>2016-12-29T11:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Import specificities excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-specificities-excel-file/m-p/321568#M61969</link>
      <description>&lt;P&gt;You can use the idea noted here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Proc-Import-Excel-File-with-data-in-second-row/m-p/321513" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Proc-Import-Excel-File-with-data-in-second-row/m-p/321513&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to clean up the file after the import - if the trailing records get read in. First get the data in and then You can use the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RETAIN flag 0;&lt;/P&gt;
&lt;P&gt;if missing(column2) then flag=1;&lt;/P&gt;
&lt;P&gt;if flag=1 then delete;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 11:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Import-specificities-excel-file/m-p/321568#M61969</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-29T11:49:04Z</dc:date>
    </item>
  </channel>
</rss>

