<?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 XLSX data repeating for null values in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506841#M32329</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am importing an XLSX file using the proc import code:&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= &amp;amp;outDS.&lt;BR /&gt;DATAFILE= "&amp;amp;inFile."&lt;BR /&gt;DBMS=xlsx REPLACE;&lt;BR /&gt;range="&amp;amp;sheetNM.$A1:AZ";&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, some of the date columns have no data in them, but when SAS is importing it, it is populating the field with the value from the previous line:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;REF1&lt;/TD&gt;&lt;TD&gt;Start Date&lt;/TD&gt;&lt;TD&gt;End Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC123&lt;/TD&gt;&lt;TD&gt;15-May-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC234&lt;/TD&gt;&lt;TD&gt;11-Jun-18&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC345&lt;/TD&gt;&lt;TD&gt;14-Dec-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC456&lt;/TD&gt;&lt;TD&gt;17-Feb-17&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC567&lt;/TD&gt;&lt;TD&gt;06-Mar-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC898&lt;/TD&gt;&lt;TD&gt;10-Mar-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only the first row should have the end date as 17/08/2018, all the others are blank in the original date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is this fixed.&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 14:39:59 GMT</pubDate>
    <dc:creator>darrenhoggard</dc:creator>
    <dc:date>2018-10-23T14:39:59Z</dc:date>
    <item>
      <title>Proc Import XLSX data repeating for null values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506841#M32329</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am importing an XLSX file using the proc import code:&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= &amp;amp;outDS.&lt;BR /&gt;DATAFILE= "&amp;amp;inFile."&lt;BR /&gt;DBMS=xlsx REPLACE;&lt;BR /&gt;range="&amp;amp;sheetNM.$A1:AZ";&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, some of the date columns have no data in them, but when SAS is importing it, it is populating the field with the value from the previous line:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;REF1&lt;/TD&gt;&lt;TD&gt;Start Date&lt;/TD&gt;&lt;TD&gt;End Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC123&lt;/TD&gt;&lt;TD&gt;15-May-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC234&lt;/TD&gt;&lt;TD&gt;11-Jun-18&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC345&lt;/TD&gt;&lt;TD&gt;14-Dec-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC456&lt;/TD&gt;&lt;TD&gt;17-Feb-17&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC567&lt;/TD&gt;&lt;TD&gt;06-Mar-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC898&lt;/TD&gt;&lt;TD&gt;10-Mar-15&lt;/TD&gt;&lt;TD&gt;17-Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only the first row should have the end date as 17/08/2018, all the others are blank in the original date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is this fixed.&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506841#M32329</guid>
      <dc:creator>darrenhoggard</dc:creator>
      <dc:date>2018-10-23T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import XLSX data repeating for null values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506843#M32330</link>
      <description>Is the cell merged? Can you attach a sample of the Excel file? I've never seen this occur so very curious under what circumstances it would occur.</description>
      <pubDate>Tue, 23 Oct 2018 14:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506843#M32330</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-23T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import XLSX data repeating for null values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506852#M32331</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is something in excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the file is received from a third party, when I amended some of the data and saved as a new workbook, it was imported into SAS ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have to go back to the third party and see what they are doing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thnaks&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506852#M32331</guid>
      <dc:creator>darrenhoggard</dc:creator>
      <dc:date>2018-10-23T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import XLSX data repeating for null values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506860#M32332</link>
      <description>&lt;P&gt;Bottom line: it is foolish to expect consistent, usable results from Excel files.&lt;/P&gt;
&lt;P&gt;Save the data to a csv file, which you can inspect with a text editor, and read it with a data step written along the documentation you get with the file.&lt;/P&gt;
&lt;P&gt;(no documentation -&amp;gt; return to sender)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Import-XLSX-data-repeating-for-null-values/m-p/506860#M32332</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-23T14:59:58Z</dc:date>
    </item>
  </channel>
</rss>

