<?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: problem of using %eval in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102527#M28716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SYSEVALF or use a FORMAT with SYSFUNC (second argument) that returns the number of seconds as an integer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 18:34:04 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2012-08-23T18:34:04Z</dc:date>
    <item>
      <title>problem of using %eval</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102526#M28715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I will get an error if I run the SAS code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some advise.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let time1=%sysfunc(time());&lt;BR /&gt;%put &amp;amp;time1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait=sleep(5);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let time2=%sysfunc(time());&lt;BR /&gt;%put &amp;amp;time2;&lt;BR /&gt;%let diff=%eval(&amp;amp;time2-&amp;amp;time1);&lt;/P&gt;&lt;P&gt;*ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 18:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102526#M28715</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-23T18:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem of using %eval</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102527#M28716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SYSEVALF or use a FORMAT with SYSFUNC (second argument) that returns the number of seconds as an integer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 18:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102527#M28716</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-08-23T18:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem of using %eval</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102528#M28717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a related note, if you do switch to %SYSEVALF, understand that the resulting &amp;amp;DIFF will contain a decimal point.&amp;nbsp; That has the potential to cause problems down the road if &amp;amp;DIFF is used in later %EVAL functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 18:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-of-using-eval/m-p/102528#M28717</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-23T18:50:19Z</dc:date>
    </item>
  </channel>
</rss>

