<?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: Reading date values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453159#M284004</link>
    <description>&lt;P&gt;Use the code window - its the {i} above post:&lt;/P&gt;
&lt;PRE&gt;data required;
  date1=20181123;
  datedifference = intck('day',input(put(date1,$8.),yymmdd8.),today());
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 12:18:05 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-11T12:18:05Z</dc:date>
    <item>
      <title>Reading date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453149#M284003</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with data in SAS using SAS passthrough for oracle. The date that is pulled is in the format yyyymmdd (e.g 20181123) and is numeric. However, I cannot manipulate this using SAS functions (such as the&amp;nbsp;INTCK function) because it is not in a valid sas format or numeric format. Can anyone advice me on how to work with this please? e.g assume you want to&amp;nbsp;create DATEDIFFERENCE variable as in the data step below. How could one do this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Required;&lt;/P&gt;&lt;P&gt;date1=20181123;&lt;/P&gt;&lt;P&gt;Datedifference = intck('day',date1,today();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 11:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453149#M284003</guid>
      <dc:creator>frupaul</dc:creator>
      <dc:date>2018-04-11T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453159#M284004</link>
      <description>&lt;P&gt;Use the code window - its the {i} above post:&lt;/P&gt;
&lt;PRE&gt;data required;
  date1=20181123;
  datedifference = intck('day',input(put(date1,$8.),yymmdd8.),today());
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453159#M284004</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-11T12:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453174#M284005</link>
      <description>&lt;P&gt;Just a very small change:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data required;
  date1=20181123;
  datedifference = intck('day',input(put(date1,8.),yymmdd8.),today());
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Numeric format for numeric variable date1 in the put() function.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453174#M284005</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453180#M284006</link>
      <description>&lt;P&gt;Please mark &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;'s answer as solution, I just added a very small improvement.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:53:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-date-values/m-p/453180#M284006</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T12:53:25Z</dc:date>
    </item>
  </channel>
</rss>

