<?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/585127#M166811</link>
    <description>&lt;P&gt;Welcome to the SAS forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;input data is&amp;nbsp;30JAN2019&amp;nbsp;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;In a text file? in a data set? Something else?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;If a text file, provide the code that reads the text file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;If not, provide the proc contents output of the source table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 04:00:11 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-08-30T04:00:11Z</dc:date>
    <item>
      <title>yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585115#M166804</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input data is&amp;nbsp;30JAN2019 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date9. is informat&lt;/P&gt;&lt;P&gt;format is MMDDYY10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;01/30/2019 is supposed to be expected, but output is&amp;nbsp;01/30/2020 if I&amp;nbsp;set yearcutoff to 2000&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I set&amp;nbsp;yearcutoff to 1900 then output is&amp;nbsp;01/30/1920&lt;/P&gt;&lt;P&gt;But only&amp;nbsp;01/30/2019 is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried multiple times but I still cannot work it out. Thanks a lot !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 01:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585115#M166804</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T01:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585116#M166805</link>
      <description>The results you describe do not add up.&lt;BR /&gt;&lt;BR /&gt;YEARCUTOFF has no impact when you are using 4-digit years.  It only applies when you use 2-digit years.&lt;BR /&gt;&lt;BR /&gt;All in all, I suspect you mistakenly used the date7 informat instead of the date9 informat.</description>
      <pubDate>Fri, 30 Aug 2019 02:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585116#M166805</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-08-30T02:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585118#M166807</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;But I'm 100% sure I used date9. informat&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 02:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585118#M166807</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T02:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585126#M166810</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287395"&gt;@runrunbunny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's either a truncated source string (only the first 7 characters) or the date7. informat. I can't think of any other reason and it's 99.99999% not a SAS bug.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options yearcutoff=2000;
data sample;
  format myDateInfmt9 myDateInfmt7 myDateString7 mmddyy10.;
  myDateInfmt9=input('30JAN2019',date9.);
  myDateInfmt7=input('30JAN2019',date7.);
  myDateString7=input('30JAN20',date9.);
  output;
  stop;
run;

proc print data=sample;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 338px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32118i49734091C671ECE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 03:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585126#M166810</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-08-30T03:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585127#M166811</link>
      <description>&lt;P&gt;Welcome to the SAS forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;input data is&amp;nbsp;30JAN2019&amp;nbsp;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;In a text file? in a data set? Something else?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;If a text file, provide the code that reads the text file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;If not, provide the proc contents output of the source table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 04:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585127#M166811</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-08-30T04:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585223#M166856</link>
      <description>&lt;P&gt;Thanks a lot for the examples you provided and they are really perfect ones. I'll keep it for my future use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options&lt;/SPAN&gt; yearcutoff=&lt;SPAN&gt;&lt;STRONG&gt;2000&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; test;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt; idno&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Name &lt;SPAN&gt;$16.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;color &lt;SPAN&gt;$7.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;hegt &lt;SPAN&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;32&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;wegt &lt;SPAN&gt;&lt;STRONG&gt;35&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;37&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;DOB &lt;SPAN&gt;Date9.&lt;/SPAN&gt; salary&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dollar10.2&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt; DOB &lt;/SPAN&gt;MMDDYY10.&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cards&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;023&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;David&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Shaw&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;red&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;30JAN2019 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$68,000&lt;/P&gt;&lt;P&gt;049&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Amelia&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Serrano&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;yellow 189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;28FEB2018 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$89,000.77&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585223#M166856</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585226#M166859</link>
      <description>&lt;P&gt;Thank you so much. What will the output you get from the following code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options&lt;/SPAN&gt; yearcutoff=&lt;SPAN&gt;&lt;STRONG&gt;2000&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; test;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt; idno&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Name &lt;SPAN&gt;$16.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;color &lt;SPAN&gt;$7.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;hegt &lt;SPAN&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;32&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;wegt &lt;SPAN&gt;&lt;STRONG&gt;35&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;37&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;DOB &lt;SPAN&gt;Date9.&lt;/SPAN&gt; salary&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dollar10.2&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt; DOB &lt;/SPAN&gt;MMDDYY10.&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cards&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;023&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;David&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Shaw&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;red&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;30JAN2019 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$68,000&lt;/P&gt;&lt;P&gt;049&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Amelia&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Serrano&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;yellow 189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;28FEB2018 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$89,000.77&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585226#M166859</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T14:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585232#M166863</link>
      <description>&lt;P&gt;There's the problem.&amp;nbsp; You are reading in the two blanks in columns 38 and 39, as part of the 9 characters that make up DOB.&amp;nbsp; Switch from:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DOB date9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to either of these:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@40 DOB date9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DOB : date9.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585232#M166863</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-08-30T15:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585241#M166868</link>
      <description>&lt;P&gt;Thanks a million!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the meaning by adding a comma in the middle of DOB and Date9. ?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585241#M166868</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585242#M166869</link>
      <description>&lt;P&gt;sorry, what's the meaning by adding a colon between DOB and Date9. ?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585242#M166869</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585243#M166870</link>
      <description>&lt;P&gt;The colon means:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scan through the line of data until you find a nonblank.&amp;nbsp; Then apply the DATE9 informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lots of people use that approach.&amp;nbsp; I prefer the other one (@40 dob date9.) just in case the DOB is actually missing on that line of data.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585243#M166870</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-08-30T15:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585248#M166873</link>
      <description>&lt;P&gt;That is the case...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add&amp;nbsp;@52 in front of salary and 68,000&amp;nbsp;truncated to 680. Is that normal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options&lt;/SPAN&gt; yearcutoff=&lt;SPAN&gt;&lt;STRONG&gt;2000&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; test;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt; idno&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Name &lt;SPAN&gt;$16.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;color &lt;SPAN&gt;$7.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;hegt &lt;SPAN&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;32&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;wegt &lt;SPAN&gt;&lt;STRONG&gt;35&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;37&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;DOB: &lt;SPAN&gt;Date9.&lt;/SPAN&gt; @&lt;SPAN&gt;&lt;STRONG&gt;52&lt;/STRONG&gt;&lt;/SPAN&gt; salary&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dollar10.2&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt; DOB &lt;/SPAN&gt;MMDDYY10.&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cards&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;023&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;David&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Shaw&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;red&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;30JAN2019 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$68,000&lt;/P&gt;&lt;P&gt;049&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Amelia&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Serrano&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;yellow 189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;28FEB2018 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$89,000.77&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585248#M166873</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T15:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585253#M166876</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287395"&gt;@runrunbunny&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;That is the case...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I add&amp;nbsp;@52 in front of salary and 68,000&amp;nbsp;truncated to 680. Is that normal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;options&lt;/SPAN&gt; yearcutoff=&lt;SPAN&gt;&lt;STRONG&gt;2000&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; test;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt; idno&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Name &lt;SPAN&gt;$16.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;color &lt;SPAN&gt;$7.&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;hegt &lt;SPAN&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;32&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;wegt &lt;SPAN&gt;&lt;STRONG&gt;35&lt;/STRONG&gt;&lt;/SPAN&gt;-&lt;SPAN&gt;&lt;STRONG&gt;37&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;DOB: &lt;SPAN&gt;Date9.&lt;/SPAN&gt; @&lt;SPAN&gt;&lt;STRONG&gt;52&lt;/STRONG&gt;&lt;/SPAN&gt; salary&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dollar10.2&lt;/SPAN&gt; ;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt; DOB &lt;/SPAN&gt;MMDDYY10.&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cards&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;023&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;David&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Shaw&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;red&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;30JAN2019 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$68,000&lt;/P&gt;
&lt;P&gt;049&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Amelia&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Serrano&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;yellow 189&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;165&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;28FEB2018 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;$89,000.77&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Don't place a decimal indicator with the informat when used this way. It does an implied decimal, a feature created from the days of punch cards. Just indicate the expected width of the longest value, including the decimal portion PLUS the actual decimal point,&amp;nbsp;such as Dollar10.&lt;/P&gt;
&lt;P&gt;Example of data that I intend the last two digits to be decimal values&lt;/P&gt;
&lt;PRE&gt;data example;
   input x 5.2;
datalines;
12345
 6789
;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585253#M166876</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-30T15:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585256#M166877</link>
      <description>&lt;P&gt;Impressive example and now I get it.&lt;/P&gt;&lt;P&gt;Thank you so much !!!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585256#M166877</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T15:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585266#M166882</link>
      <description>&lt;P&gt;Note that in LIST mode input (which is what the colon modify triggers) you do not need use DATE9 (instead of DATE7 or just DATE) since the width on the informat is ignored. Instead SAS will use the length of the next word in the input stream.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input dob :date. ;
...
informat dob date.;
input dob;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Some people like to include widths when reading character variables because they have not previously defined the variables before the INPUT statement. So in that case the data step compiler will use the width of the informat specification to guess how long of a character variable to create.&amp;nbsp; That doesn't really apply to numeric variables like DATE since those always use the full 8 bytes it takes to represent a floating point number while the step is running.&amp;nbsp; If you want to store fewer bytes for your numeric variable in the output dataset you have to use a explicit LENGTH statement (or LENGTH= option on ATTRIB statement).&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585266#M166882</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-30T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: yearcutoff problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585272#M166886</link>
      <description>&lt;P&gt;learned a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/yearcutoff-problem/m-p/585272#M166886</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2019-08-30T16:23:29Z</dc:date>
    </item>
  </channel>
</rss>

