<?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: Converting character to Numeric date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Converting-character-to-Numeric-date/m-p/44114#M11629</link>
    <description>input(substr(year,1,4),4.);</description>
    <pubDate>Sun, 04 Jul 2010 03:10:06 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2010-07-04T03:10:06Z</dc:date>
    <item>
      <title>Converting character to Numeric date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-character-to-Numeric-date/m-p/44113#M11628</link>
      <description>I have a bunch of data with the dates in years, for example,&lt;BR /&gt;
1921-22,&lt;BR /&gt;
1922-23,&lt;BR /&gt;
1923-24.&lt;BR /&gt;
i tried to convert them to the numeric year which will only show the first 4 numeric # as the year, for example, the date should be like,&lt;BR /&gt;
1921,&lt;BR /&gt;
1922,&lt;BR /&gt;
1923.&lt;BR /&gt;
i used input(substr(year,1,4),f4.0);&lt;BR /&gt;
it's saying Statement is not valid or it is used out of proper order.&lt;BR /&gt;
thanks,&lt;BR /&gt;
Y</description>
      <pubDate>Sun, 04 Jul 2010 01:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-character-to-Numeric-date/m-p/44113#M11628</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-04T01:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character to Numeric date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-character-to-Numeric-date/m-p/44114#M11629</link>
      <description>input(substr(year,1,4),4.);</description>
      <pubDate>Sun, 04 Jul 2010 03:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-character-to-Numeric-date/m-p/44114#M11629</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-07-04T03:10:06Z</dc:date>
    </item>
  </channel>
</rss>

