<?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: Unknown dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453100#M114441</link>
    <description>&lt;P&gt;In&amp;nbsp;one variable i want dates like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22aug2017&lt;/P&gt;&lt;P&gt;Nk/NK/2017&lt;/P&gt;&lt;P&gt;23aug2018&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 08:29:00 GMT</pubDate>
    <dc:creator>KalaBhairava</dc:creator>
    <dc:date>2018-04-11T08:29:00Z</dc:date>
    <item>
      <title>Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453080#M114428</link>
      <description>&lt;P&gt;I have data like&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;20170822,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;NK/NK/2017&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt; how i can convert data into date9 format...?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 06:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453080#M114428</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-11T06:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453081#M114429</link>
      <description>&lt;P&gt;To what date would you expect the string NK/NK/2017 to get resolved? 01Jan2017? ...or something else?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 06:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453081#M114429</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-04-11T06:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453086#M114433</link>
      <description>I want that variable in date9. Format,&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453086#M114433</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-11T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453088#M114435</link>
      <description>&lt;P&gt;Not clear what you have and what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"NK/NK/2017" is not a date in any calendar i have seen so far.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453088#M114435</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-04-11T07:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453089#M114436</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204061"&gt;@KalaBhairava&lt;/a&gt;, pay attention:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the given date&amp;nbsp;&lt;STRONG&gt;20170822&lt;/STRONG&gt; when displayed in date9. format will look like:&amp;nbsp;&lt;STRONG&gt;22AUG2017.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when given date is&amp;nbsp;&lt;STRONG&gt;NK/NK/2017&amp;nbsp;&lt;/STRONG&gt;- what do you want to display as DAY and what as MONTH ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;NK&lt;/STRONG&gt; is not numeric valid DAY and not a valid MONTH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Your answer to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;is not clear.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453089#M114436</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-11T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453091#M114437</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204061"&gt;@KalaBhairava&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have data like&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;20170822,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;NK/NK/2017&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt; how i can convert data into date9 format...?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can't, as &lt;FONT color="#000000"&gt;NK/NK/2017&lt;/FONT&gt; is not a date. I don't know of a day NK in any calender system I can think of, and NK isn't a month either.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453091#M114437</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T07:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453100#M114441</link>
      <description>&lt;P&gt;In&amp;nbsp;one variable i want dates like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22aug2017&lt;/P&gt;&lt;P&gt;Nk/NK/2017&lt;/P&gt;&lt;P&gt;23aug2018&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453100#M114441</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-11T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453103#M114443</link>
      <description>&lt;P&gt;NK means unknown date values i want present all values in one variable ,for more information please find&amp;nbsp;below variable start data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Startdate&lt;/P&gt;&lt;P&gt;07-AUG-2017&lt;/P&gt;&lt;P&gt;11-AUG-2017&lt;/P&gt;&lt;P&gt;08-AUG-2017&lt;/P&gt;&lt;P&gt;NK NK 2018&lt;/P&gt;&lt;P&gt;NK NK NK&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;07-AUG-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453103#M114443</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-11T08:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453104#M114444</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204061"&gt;@KalaBhairava&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;NK means unknown date values i want present all values in one variable ,for more information please find&amp;nbsp;below variable start data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Startdate&lt;/P&gt;
&lt;P&gt;07-AUG-2017&lt;/P&gt;
&lt;P&gt;11-AUG-2017&lt;/P&gt;
&lt;P&gt;08-AUG-2017&lt;/P&gt;
&lt;P&gt;NK NK 2018&lt;/P&gt;
&lt;P&gt;NK NK NK&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;07-AUG-2017&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;AND WHAT SHOULD BE USED IN PLACE OF 'NK' FOR MONTH AND DAY???&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;A SAS date ALWAYS(!!!) needs a day and month, period. It describes exactly one existing day of a year.&lt;/P&gt;
&lt;P&gt;And NK NK NK is of course totally unusable, but there you could at least create a valid missing value.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453104#M114444</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453106#M114445</link>
      <description>&lt;P&gt;No it should be&amp;nbsp;&lt;SPAN&gt;NK/NK/2017 only&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453106#M114445</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-11T08:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453107#M114446</link>
      <description>&lt;P&gt;I need to present it as&amp;nbsp;&lt;SPAN&gt;NK/NK/2017 in date variable if i converted into date9. the NK will become blank&amp;nbsp;i want it as&amp;nbsp;NK/NK/2017&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453107#M114446</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-11T08:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453108#M114447</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204061"&gt;@KalaBhairava&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;No it should be&amp;nbsp;&lt;SPAN&gt;NK/NK/2017 only&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you can only store this data-crap as text, not as SAS dates.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453108#M114447</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-11T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453110#M114449</link>
      <description>&lt;P&gt;I understand that your input date si a char type,&lt;/P&gt;
&lt;P&gt;with normal date in a format of yyyymmdd, then you can try do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length new_date $10;&lt;BR /&gt;test_date = input(date, ?? yymmdd8.).
if test_date = . then new_date = date;
else new_date = put(date,date9.);&lt;BR /&gt;drop test_date;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/453110#M114449</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-11T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/454135#M114790</link>
      <description>&lt;P&gt;Thank you very much Sir..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 10:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unknown-dates/m-p/454135#M114790</guid>
      <dc:creator>KalaBhairava</dc:creator>
      <dc:date>2018-04-14T10:30:47Z</dc:date>
    </item>
  </channel>
</rss>

