<?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 PUT and INPUT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548575#M152132</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code below everything is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA NEW;&lt;BR /&gt;NUMDT=20081990;&lt;BR /&gt;CHRDT=PUT(NUMDT,8.);&lt;BR /&gt;SASDT=INPUT(CHRDT,DDMMYY8.);&lt;BR /&gt;FORMAT SASDT DATE9.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but in the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA NEW;&lt;BR /&gt;NUMDT=20081990;&lt;BR /&gt;CHRDT=PUT(NUMDT,date7.);&lt;BR /&gt;SASDT=INPUT(CHRDT,DDMMYY8.);&lt;BR /&gt;FORMAT SASDT DATE9.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it was not working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please when exactly should i need to mention in put-format as date7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2019 17:18:19 GMT</pubDate>
    <dc:creator>mahender1</dc:creator>
    <dc:date>2019-04-04T17:18:19Z</dc:date>
    <item>
      <title>PUT and INPUT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548575#M152132</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code below everything is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA NEW;&lt;BR /&gt;NUMDT=20081990;&lt;BR /&gt;CHRDT=PUT(NUMDT,8.);&lt;BR /&gt;SASDT=INPUT(CHRDT,DDMMYY8.);&lt;BR /&gt;FORMAT SASDT DATE9.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but in the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA NEW;&lt;BR /&gt;NUMDT=20081990;&lt;BR /&gt;CHRDT=PUT(NUMDT,date7.);&lt;BR /&gt;SASDT=INPUT(CHRDT,DDMMYY8.);&lt;BR /&gt;FORMAT SASDT DATE9.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it was not working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please when exactly should i need to mention in put-format as date7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548575#M152132</guid>
      <dc:creator>mahender1</dc:creator>
      <dc:date>2019-04-04T17:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: PUT and INPUT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548584#M152133</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA NEW1;
NUMDT=20081990;
temp=input(PUT(NUMDT,8.),ddmmyy8.);
CHRDT=put(temp,date7.);
SASDT=INPUT(CHRDT,date7.);
FORMAT SASDT DATE9.;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The temp variable is just reading ease and eyesight&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548584#M152133</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-04T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: PUT and INPUT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548601#M152144</link>
      <description>&lt;P&gt;When should you use the DATE7 format?&amp;nbsp; Never.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DATE7 format uses two-digit years, which introduces pitfalls and complications that are a major headache.&amp;nbsp; For example, try&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;'s program, but instead of using 20081990, use 20081915 as your original date.&amp;nbsp; You will end up with a different date than you started with.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 18:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548601#M152144</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-04T18:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: PUT and INPUT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548612#M152150</link>
      <description>&lt;P&gt;The variable NUMDT in your programs does NOT contain a date. It has the value&amp;nbsp;&lt;SPAN&gt;20,081,990.&amp;nbsp; The date value for the '20AUG1990'd is&amp;nbsp;11,189 since it is that number of days after '01JAN1960'd.&amp;nbsp; In the second program you are treating it as if it was a date. But over 20 million days is almost 55,000 years.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 18:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PUT-and-INPUT/m-p/548612#M152150</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-04T18:21:32Z</dc:date>
    </item>
  </channel>
</rss>

