<?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: yearcutoff problem. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395340#M95319</link>
    <description>&lt;P&gt;Your informat should be MMDDYY10. - the length includes the forward slashes. This is a data truncation problem - you are reading 12/08/19 when you should be reading 12/08/1925. The YEARCUTOFF option is irrelevant in this case as you have the complete date including the century.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2017 23:51:15 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-09-12T23:51:15Z</dc:date>
    <item>
      <title>yearcutoff problem.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395333#M95314</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)Suppose the YEARCUTOFF= system option is set to 1920. An input file contains the date expression 12/08/1925, which is being read with the MMDDYY8.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;informat. Which date will appear in your data?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;: The answer is&amp;nbsp;&lt;SPAN&gt;08DEC2019 &amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;I felt the answer would be&amp;nbsp;08DEC1925 , as 1920-2019 will be range if yearcutoff=1920.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Experts pls help me out with this problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raj&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 22:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395333#M95314</guid>
      <dc:creator>rajvir</dc:creator>
      <dc:date>2017-09-12T22:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395334#M95315</link>
      <description>&lt;P&gt;Your issue isn't with YEARCUTOFF per se, but with the format.&lt;/P&gt;
&lt;P&gt;If it's MMDDYY10 - it uses the whole year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if it's MMDDYY8 - it sees&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12/08/19 -&amp;gt; 2019&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395334#M95315</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-12T23:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395335#M95316</link>
      <description>&lt;P&gt;the date is&amp;nbsp;&lt;STRONG&gt;12/08/1925,&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395335#M95316</guid>
      <dc:creator>rajvir</dc:creator>
      <dc:date>2017-09-12T23:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395340#M95319</link>
      <description>&lt;P&gt;Your informat should be MMDDYY10. - the length includes the forward slashes. This is a data truncation problem - you are reading 12/08/19 when you should be reading 12/08/1925. The YEARCUTOFF option is irrelevant in this case as you have the complete date including the century.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395340#M95319</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-12T23:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395371#M95325</link>
      <description>&lt;P&gt;Just saying the same thing in different words ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MMDDYY8 informat means, "Read 8 characters. &amp;nbsp;Expect them to be in month+day+year form. &amp;nbsp;Interpret and convert what you find within those 8 characters."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the data contains 12/08/1925. &amp;nbsp;But the MMDDYY8 informat specifically instructs the software to read the first 8 of those 10 characters. &amp;nbsp;It never reads the "25" at the end, only the "12/08/19".&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 03:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395371#M95325</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-13T03:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395374#M95327</link>
      <description>Thanks now got it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 13 Sep 2017 03:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/395374#M95327</guid>
      <dc:creator>rajvir</dc:creator>
      <dc:date>2017-09-13T03:40:43Z</dc:date>
    </item>
  </channel>
</rss>

