<?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: read a macrovariable which has a date value. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160994#M299711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks mate, it worked&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 22:31:33 GMT</pubDate>
    <dc:creator>dennis_oz</dc:creator>
    <dc:date>2014-05-15T22:31:33Z</dc:date>
    <item>
      <title>read a macrovariable which has a date value.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160992#M299709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have a macro&amp;nbsp; varialbe&amp;nbsp; &amp;amp;file_dt .&lt;/P&gt;&lt;P&gt;it resolves in the log as 2014-05-09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use this date for computation purposes.&lt;/P&gt;&lt;P&gt;When I try converting it into a numerical sas value like shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;T=INPUT(&amp;amp;FILE_DT,YYMMDD10.);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T DOES NOT AVE ANY VALUE.&lt;/P&gt;&lt;P&gt;LOG HAS ERROR MESSAGE&amp;nbsp; 'NUMERIC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES CONVERTED TO CHARACTER VALUE "&lt;/P&gt;&lt;P&gt;why is this so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 21:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160992#M299709</guid>
      <dc:creator>dennis_oz</dc:creator>
      <dc:date>2014-05-15T21:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: read a macrovariable which has a date value.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160993#M299710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INPUT expects a text value use "&amp;amp;file_dt".&lt;/P&gt;&lt;P&gt;It was doing the arithmetic 2014 minus 05 minus 09, which is why you hade the numeric message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 21:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160993#M299710</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-15T21:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: read a macrovariable which has a date value.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160994#M299711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks mate, it worked&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 22:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-a-macrovariable-which-has-a-date-value/m-p/160994#M299711</guid>
      <dc:creator>dennis_oz</dc:creator>
      <dc:date>2014-05-15T22:31:33Z</dc:date>
    </item>
  </channel>
</rss>

