<?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: How to get expression value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67698#M14663</link>
    <description>You are my God, thank you very much!</description>
    <pubDate>Thu, 27 Aug 2009 16:40:15 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-08-27T16:40:15Z</dc:date>
    <item>
      <title>How to get expression value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67695#M14660</link>
      <description>I have a dataset with two variables and three observation as following.&lt;BR /&gt;
&lt;BR /&gt;
Formula($200.)                          Value(Best20.2)&lt;BR /&gt;
netpv(0.1, 1,0, 1000)                   &lt;BR /&gt;
sin(45)	                                &lt;BR /&gt;
netpv(0.1,1,0, netpv(0.1,1,0,2000)      &lt;BR /&gt;
&lt;BR /&gt;
How to calculate formula variable and update the result to value variable.  Thanks all master-hand first!</description>
      <pubDate>Thu, 27 Aug 2009 15:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67695#M14660</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-27T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get expression value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67696#M14661</link>
      <description>is this what you mean?&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set xxx end = eof;&lt;BR /&gt;
if _n_ = 1 then&lt;BR /&gt;
call execute('data new; set xxx;');&lt;BR /&gt;
call execute('if formula = "' || formula ||'" then value = ' ||formula || ';'); &lt;BR /&gt;
if eof then call execute('run;');&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 27 Aug 2009 16:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67696#M14661</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-08-27T16:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get expression value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67697#M14662</link>
      <description>This will be slow and it doesn't handle nested functions.  &lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data results;&lt;BR /&gt;
   input formula $40.;&lt;BR /&gt;
   value = input(resolve(cats('%sysfunc(',formula,')')),f8.);&lt;BR /&gt;
   cards;&lt;BR /&gt;
netpv(0.1, 1,0, 1000) &lt;BR /&gt;
sin(45) &lt;BR /&gt;
netpv(0.1,1,0,2000) &lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 27 Aug 2009 16:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67697#M14662</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-08-27T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get expression value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67698#M14663</link>
      <description>You are my God, thank you very much!</description>
      <pubDate>Thu, 27 Aug 2009 16:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-expression-value/m-p/67698#M14663</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-27T16:40:15Z</dc:date>
    </item>
  </channel>
</rss>

