<?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 length question and footnote question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338329#M77026</link>
    <description>&lt;P&gt;Thank you for the explanation and the article. Just to make sure I understand, &amp;nbsp;when we read a date value as numeric, it &lt;SPAN&gt;represents the number of days between January 1, 1960, and a specified date.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Even after formatting it as mmddyy8., date9., or any other date format for that matter, the underlying value is still the number of days between January 1, 1960, and a specified date. The only way to make that specific date have a length of 9 is to convert it to character with a format of date9. Is this correct?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 00:52:31 GMT</pubDate>
    <dc:creator>smw10</dc:creator>
    <dc:date>2017-03-06T00:52:31Z</dc:date>
    <item>
      <title>Date length question and footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338310#M77013</link>
      <description>&lt;P&gt;I hope all of you are having a good afternoon. After the code below is executed, why is the length of date1 equal to 8 rather than 9?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;date=input("09MAR2013",date9.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the footnote question, why does the following only create the footnotes "A" and "E"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;footnote1 "A";&lt;/P&gt;&lt;P&gt;footnote2 "B";&lt;/P&gt;&lt;P&gt;footnote3 "C";&lt;/P&gt;&lt;P&gt;footnote4 "D";&lt;/P&gt;&lt;P&gt;proc print data=data1;&lt;/P&gt;&lt;P&gt;footnote2 "E";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338310#M77013</guid>
      <dc:creator>smw10</dc:creator>
      <dc:date>2017-03-05T21:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date length question and footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338311#M77014</link>
      <description>&lt;P&gt;I think you're mixing things up somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For first question, there is no date variable called date1. There is a variable called date and the length is 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For second question, you don't have a dataset called test1 that you've shown us.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you create footnote2 it erases all the others below it, ie footnote2+ are set to blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1ukd9sqgqiwwhn1mrx4c1rbse1j.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1ukd9sqgqiwwhn1mrx4c1rbse1j.htm&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;The most recently specified TITLE or FOOTNOTE statement of any number completely replaces any other TITLE or FOOTNOTE statement of that number.&lt;STRONG&gt; In addition, it cancels all TITLE or FOOTNOTE statements of a higher number. For example, if you define TITLE1, TITLE2, and TITLE3, then submitting a new TITLE2 statement cancels TITLE3.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338311#M77014</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-05T21:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date length question and footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338312#M77015</link>
      <description>&lt;P&gt;Thank you for your response. I meant to say date rather than date1. Why does it have a length of 8 rather than a length of 9?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 22:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338312#M77015</guid>
      <dc:creator>smw10</dc:creator>
      <dc:date>2017-03-05T22:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date length question and footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338313#M77016</link>
      <description>&lt;P&gt;Let me flip that back to you:&lt;/P&gt;
&lt;P&gt;Why should it have a length of 9? What did the INPUT function do in this case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run the example below and Note that the following prints the exact same dataset each time. No changes to the variable underlying value are made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
date=input("09DEC2013",date9.);
run;

title 'Example 1';
proc print data=test;
format date date9.;
run;

title 'Example 2';
proc print data=test;
format date mmddyy8.;
run;

title 'Example 3';
proc print data=test;
format date worddate.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's a reference to the documentation on how SAS stores date, times and datetimes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Date and Time&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 22:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338313#M77016</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-05T22:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date length question and footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338329#M77026</link>
      <description>&lt;P&gt;Thank you for the explanation and the article. Just to make sure I understand, &amp;nbsp;when we read a date value as numeric, it &lt;SPAN&gt;represents the number of days between January 1, 1960, and a specified date.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Even after formatting it as mmddyy8., date9., or any other date format for that matter, the underlying value is still the number of days between January 1, 1960, and a specified date. The only way to make that specific date have a length of 9 is to convert it to character with a format of date9. Is this correct?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 00:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338329#M77026</guid>
      <dc:creator>smw10</dc:creator>
      <dc:date>2017-03-06T00:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date length question and footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338331#M77027</link>
      <description>&lt;P&gt;A Date is the number of days from Jan 1, 1960.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Theres no second date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 01:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-length-question-and-footnote-question/m-p/338331#M77027</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-06T01:13:10Z</dc:date>
    </item>
  </channel>
</rss>

