<?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 and time stamp on input file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385728#M92313</link>
    <description>&lt;P&gt;I'm with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;on this. I read lots of files with that date (almost time) field as dates because the data source exposes data as date and time but the time values are invariate (all 12:00:00 AM for example). Why anyone lets "time" become part of something when it never changes continues to annoy me greately.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2017 17:29:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-08-04T17:29:12Z</dc:date>
    <item>
      <title>date and time stamp on input file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385658#M92283</link>
      <description>&lt;P&gt;I have a comma delimtier file and a field coming in at 6/1/2016 12:00:00 AM.&amp;nbsp; How do i read that in on my input step?&amp;nbsp; I just want the date of 6/1/2016&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385658#M92283</guid>
      <dc:creator>myboys2</dc:creator>
      <dc:date>2017-08-04T14:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: date and time stamp on input file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385662#M92284</link>
      <description>Easiest is to read the whole datetime field first, and in a later step extract the date via the datepart function.</description>
      <pubDate>Fri, 04 Aug 2017 14:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385662#M92284</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-04T14:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: date and time stamp on input file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385665#M92285</link>
      <description>&lt;P&gt;If you import the properly, with a datastep and infile, and you read that data as a date-time, then you already have the date. &amp;nbsp;You can extract it using the function datepart(). &amp;nbsp;Thus is fouy want a character version you would just add:&lt;/P&gt;
&lt;PRE&gt;char_date=put(datepart(dt_var),date9.);&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385665#M92285</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-04T14:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: date and time stamp on input file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385669#M92286</link>
      <description>&lt;P&gt;If you use the ANYDTDTE. informat it will read it and store just the date part as a date value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use the ANYDTDTM. informat and it will create a datetime value. You could then use DTDATE. formar to just display the date. or use the DATEPART() function to extract the date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385669#M92286</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-04T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: date and time stamp on input file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385728#M92313</link>
      <description>&lt;P&gt;I'm with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;on this. I read lots of files with that date (almost time) field as dates because the data source exposes data as date and time but the time values are invariate (all 12:00:00 AM for example). Why anyone lets "time" become part of something when it never changes continues to annoy me greately.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-and-time-stamp-on-input-file/m-p/385728#M92313</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-04T17:29:12Z</dc:date>
    </item>
  </channel>
</rss>

