<?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 with wrong century when imported from a csv in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329002#M21866</link>
    <description>&lt;P&gt;You can modify the yearcutoff= system option, but that is only a stopgap measure for data that you have no control over. 4-digit years are the way to go.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 09:16:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-01T09:16:20Z</dc:date>
    <item>
      <title>Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/328994#M21862</link>
      <description>&lt;P&gt;My data is imported from a csv file.&amp;nbsp; In the csv file, I have a date field showing dates in the format, 22/05/39.&amp;nbsp; When I click on the cell I can see that the date is in reference to the year 2039 but when I import it to SAS, it shows as 1939.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with a way around this please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 08:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/328994#M21862</guid>
      <dc:creator>N_C</dc:creator>
      <dc:date>2017-02-01T08:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/328998#M21864</link>
      <description>&lt;P&gt;Use a 4-digit format for the year in Excel. Period.&lt;/P&gt;
&lt;P&gt;2-digit years should have been permanently disallowed since 2000.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 08:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/328998#M21864</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-01T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329000#M21865</link>
      <description>&lt;P&gt;Thanks, I agree!&amp;nbsp; I can get around it like that but was hoping there was an alternative solution so that I didn't have to reformat the data every month.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329000#M21865</guid>
      <dc:creator>N_C</dc:creator>
      <dc:date>2017-02-01T09:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329002#M21866</link>
      <description>&lt;P&gt;You can modify the yearcutoff= system option, but that is only a stopgap measure for data that you have no control over. 4-digit years are the way to go.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329002#M21866</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-01T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329005#M21867</link>
      <description>&lt;P&gt;On your import program (which you haven't shown us so I can only guess), in the datastep have a line:&lt;/P&gt;
&lt;P&gt;date=intnx('year',date,100);&lt;/P&gt;
&lt;P&gt;This will move the date's year on 100. &amp;nbsp;You will have to fix yourself or alter system options as the data is "bad".&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329005#M21867</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-01T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329006#M21868</link>
      <description>&lt;P&gt;Thanks but I can't do this as my data spans more than 100 years.&amp;nbsp; I think the only option is to format the data in Excel to show 4 digits as per KurtBremser response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329006#M21868</guid>
      <dc:creator>N_C</dc:creator>
      <dc:date>2017-02-01T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date with wrong century when imported from a csv</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329151#M21886</link>
      <description>&lt;P&gt;I hope that you have the correct values. If the file is csv and then opened in Excel and formatting applied sometimes values get "interpretted" by Excel in ways that may not quite be as desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that Excel is likely using a similar approach to the YEARCUTOFF so be careful about saving over your original file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-with-wrong-century-when-imported-from-a-csv/m-p/329151#M21886</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-01T16:39:14Z</dc:date>
    </item>
  </channel>
</rss>

