<?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: Date info and format changed after importing from Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270245#M53665</link>
    <description>&lt;P&gt;Can you please tell us HOW you imported the Excel spreadsheet into SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PROC IMPORT..&lt;/LI&gt;&lt;LI&gt;LIBNAME EXCEL..&lt;/LI&gt;&lt;LI&gt;Using the EG "Import Data" task&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;other?&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Including code &amp;amp; logs would&amp;nbsp;would also assist us in assisting you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 01:10:14 GMT</pubDate>
    <dc:creator>AndrewHowell</dc:creator>
    <dc:date>2016-05-13T01:10:14Z</dc:date>
    <item>
      <title>Date info and format changed after importing from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270240#M53663</link>
      <description>&lt;DIV class="gmail_default"&gt;I imported an excel file with date information enclosed as a format of mm/dd/yyyy (e.g. 11/1/1997) in Excel.&amp;nbsp;After importing into SAS, the format changed automatically&amp;nbsp;into a series of numbers and variable type is&amp;nbsp;character. I converted character into numeric and used DATE9. format. However, I got the different date for the same record. e.g. 11/1/1997 changed to 02NOV2057.&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;My goal is&amp;nbsp;to keep the original date info and its format as they are after importing.&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;Two image files attached for reference. Thanks in advance.&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12538i66D90AA6E1EC453C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="excel_image.png" title="excel_image.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12539iAC0608D6D2E66DFA/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SASoutput_image.png" title="SASoutput_image.png" /&gt;</description>
      <pubDate>Fri, 13 May 2016 00:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270240#M53663</guid>
      <dc:creator>mehong19</dc:creator>
      <dc:date>2016-05-13T00:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date info and format changed after importing from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270245#M53665</link>
      <description>&lt;P&gt;Can you please tell us HOW you imported the Excel spreadsheet into SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PROC IMPORT..&lt;/LI&gt;&lt;LI&gt;LIBNAME EXCEL..&lt;/LI&gt;&lt;LI&gt;Using the EG "Import Data" task&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;other?&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Including code &amp;amp; logs would&amp;nbsp;would also assist us in assisting you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270245#M53665</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2016-05-13T01:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date info and format changed after importing from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270319#M53692</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this looks similar to &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Difference-In-Dates-From-Data-Imported-SAS-Local-Data-Provider-9/td-p/170250" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Difference-In-Dates-From-Data-Imported-SAS-Local-Data-Provider-9/td-p/170250&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 12:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270319#M53692</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-05-13T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date info and format changed after importing from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270360#M53705</link>
      <description>&lt;P&gt;If you used Proc Import to bring the data into SAS you may have fallen somewhat afoul of user data entry and/or other EXCEL behavior.&amp;nbsp;Proc Import uses what the Excel data engine tells SAS the data is in the first few rows. So if you have any data in the data column that is not in exactly the same form as the top 20 rows it gets treated as if it were that format. An obnoxious bit about Excel is depending on how users enter data you may create an Excel date value or a string. The conversion is not the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When data is entered manually it may be necessary to highlight your date columns and change the entire column to one type and set the format for all of the cells the same. I usually export to CSV and import that as I have more control and some other issues become more obvious such as changing lengths of charater variables that are supposed to be the same in different files.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-info-and-format-changed-after-importing-from-Excel/m-p/270360#M53705</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-13T14:46:35Z</dc:date>
    </item>
  </channel>
</rss>

