<?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 Dates with undetermined components in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639355#M190198</link>
    <description>&lt;P&gt;Dear SAS experts,&lt;BR /&gt;Is it possible to achieve this result&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.png" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38245i0BF110BEC4832356/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.png" alt="output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;without tranwrd (without removing 'UN' or other letters)? I need to have a dynamic code.&lt;BR /&gt;I started to solve on this way, but it didn't work yet. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data task_1;&lt;BR /&gt;input date: $9. ;&lt;/P&gt;
&lt;P&gt;day=substr(date,1,2);&lt;BR /&gt;month=substr(date,3,3);&lt;BR /&gt;year=substr(date,6,4);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if (day) then day1=day;&lt;BR /&gt;if (year) then year1=year;&lt;BR /&gt;month1=put(month,3.);&lt;BR /&gt;if (month) then month1=month;&lt;BR /&gt;newdate=cats(year1,month1,day1);&lt;/P&gt;
&lt;P&gt;datalines;&lt;BR /&gt;27APR2001&lt;BR /&gt;30JUL1979&lt;BR /&gt;unfeb2005&lt;BR /&gt;UNUNK1964&lt;BR /&gt;ununkunk&lt;BR /&gt;;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2020 04:34:37 GMT</pubDate>
    <dc:creator>art_srap</dc:creator>
    <dc:date>2020-04-13T04:34:37Z</dc:date>
    <item>
      <title>Dates with undetermined components</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639355#M190198</link>
      <description>&lt;P&gt;Dear SAS experts,&lt;BR /&gt;Is it possible to achieve this result&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.png" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38245i0BF110BEC4832356/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.png" alt="output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;without tranwrd (without removing 'UN' or other letters)? I need to have a dynamic code.&lt;BR /&gt;I started to solve on this way, but it didn't work yet. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data task_1;&lt;BR /&gt;input date: $9. ;&lt;/P&gt;
&lt;P&gt;day=substr(date,1,2);&lt;BR /&gt;month=substr(date,3,3);&lt;BR /&gt;year=substr(date,6,4);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if (day) then day1=day;&lt;BR /&gt;if (year) then year1=year;&lt;BR /&gt;month1=put(month,3.);&lt;BR /&gt;if (month) then month1=month;&lt;BR /&gt;newdate=cats(year1,month1,day1);&lt;/P&gt;
&lt;P&gt;datalines;&lt;BR /&gt;27APR2001&lt;BR /&gt;30JUL1979&lt;BR /&gt;unfeb2005&lt;BR /&gt;UNUNK1964&lt;BR /&gt;ununkunk&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 04:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639355#M190198</guid>
      <dc:creator>art_srap</dc:creator>
      <dc:date>2020-04-13T04:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639356#M190199</link>
      <description>&lt;P&gt;Please do not make use of dubious links. Post code, logs, and expected results&amp;nbsp;&lt;EM&gt;directly here&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Use the "little running man" for code, &amp;lt;/&amp;gt; for logs and textual data (or output), and the camera button for posting screenshots.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 20:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639356#M190199</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-12T20:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639403#M190230</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data task_1;
input date: $9. ;
length d m y $4 dateStr $10;
day=input(substr(date,1,2), ?? best.);
if day &amp;gt; 0 then d = put(day, z2.0);
month=whichc(upcase(substr(date,3,3)), 
	"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC");
if month &amp;gt; 0 then m = put(month, z2.);
year=input(substr(date,6,4), ?? best.);
if year &amp;gt; 0 then y = put(year, z4.0);
dateStr = catx("-", y, m, d);
datalines;
27APR2001
30JUL1979
unfeb2005
UNUNK1964
ununkunk
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Apr 2020 04:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639403#M190230</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-04-13T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639826#M190409</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 16:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-with-undetermined-components/m-p/639826#M190409</guid>
      <dc:creator>art_srap</dc:creator>
      <dc:date>2020-04-14T16:17:19Z</dc:date>
    </item>
  </channel>
</rss>

