<?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: Substr Functions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98007#M4927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it was numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks~ it worked~!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 07:56:23 GMT</pubDate>
    <dc:creator>Yondori</dc:creator>
    <dc:date>2013-06-07T07:56:23Z</dc:date>
    <item>
      <title>Substr Functions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98004#M4924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my own dataset as follows&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1111.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/3656_1111.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Birthday is like yyyymmdd (e.g. 20011011)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I want to make it seperately like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B_Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B_Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B_Day&lt;/P&gt;&lt;P&gt;2001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, how can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to make it using substr function but, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe because it is numeric format or somehing. but, Is there any way that I can extract it separtely?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 15:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98004#M4924</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-06-06T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Substr Functions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98005#M4925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to tell us more about the variable BIRTHDAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it character or numeric?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If numeric, does it actually take on the value that you have displayed, or is that a formatted value based on the scale that SAS normally uses for dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we know those answers, the programming will be easy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98005#M4925</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-06-06T16:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Substr Functions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98006#M4926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the date a SAS date value, possibly with a yymmddn8. format? If so then the date functions would be appropriate&lt;/P&gt;&lt;P&gt;B_year= year(birthday);&lt;/P&gt;&lt;P&gt;B_Month=month(birthday);&lt;/P&gt;&lt;P&gt;B_Day = day(birthday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want a text result and the birthday is a simple number then something like this may work:&lt;/P&gt;&lt;P&gt;b_year = substr(put(birthday,f8.0),1,4);&lt;/P&gt;&lt;P&gt;b_month= substr(put(birthday,f8.0),5,2);&lt;/P&gt;&lt;P&gt;b_day = substr(put(birthday,f8.0),7,2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98006#M4926</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-06-06T16:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Substr Functions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98007#M4927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it was numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks~ it worked~!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 07:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Substr-Functions/m-p/98007#M4927</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-06-07T07:56:23Z</dc:date>
    </item>
  </channel>
</rss>

