<?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 %Sysevalf in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sysevalf/m-p/89179#M4373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I was reading a paper on Do loops and Do loops&amp;nbsp; in Macros&lt;/P&gt;&lt;P&gt;&lt;A href="http://analytics.ncsu.edu/sesug/2010/FF01.Woodruff.pdf" title="http://analytics.ncsu.edu/sesug/2010/FF01.Woodruff.pdf"&gt;http://analytics.ncsu.edu/sesug/2010/FF01.Woodruff.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On page 18 it says you&amp;nbsp; can use this method&lt;/P&gt;&lt;P&gt; only when you intervals to be calculated that are a factor of 10; &lt;/P&gt;&lt;P&gt;for .1 divide by 10,&lt;/P&gt;&lt;P&gt; for .2 divide by 5 and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for .5 divide by 2.&amp;nbsp; (if we do this we get the values from 5.0,5.5 6.0 so on) We actually wanted 10.0 10.5 11.0 11.5 etc????????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Macro Test ;&lt;/P&gt;&lt;P&gt;%Do I = %SysEvalF( 1 * 10 ) %To %SysEvalF( 2 * 10 ) ;&lt;/P&gt;&lt;P&gt;%Put I = %sysEvalF( &amp;amp;I / 10 ) ;&lt;/P&gt;&lt;P&gt;%End ;&lt;/P&gt;&lt;P&gt;%Mend ;&lt;/P&gt;&lt;P&gt;%Test&lt;/P&gt;&lt;P&gt;I = 1&lt;/P&gt;&lt;P&gt;I = 1.1&lt;/P&gt;&lt;P&gt;I = 1.2&lt;/P&gt;&lt;P&gt;I = 1.3&lt;/P&gt;&lt;P&gt;I = 1.4&lt;/P&gt;&lt;P&gt;I = 1.5&lt;/P&gt;&lt;P&gt;I = 1.6&lt;/P&gt;&lt;P&gt;I = 1.7&lt;/P&gt;&lt;P&gt;I = 1.8&lt;/P&gt;&lt;P&gt;I = 1.9&lt;/P&gt;&lt;P&gt;I = 2&lt;/P&gt;&lt;P&gt;In the above code we have used the %SysEvalF for the Start, Stop and in the %PUT to increment the values from 1&lt;/P&gt;&lt;P&gt;to 2 by 0.1. This works solely because the math in the Start and Stop values will create the needed number of&lt;/P&gt;&lt;P&gt;iterations and the %SysEvalF in the %PUT will manipulate the values to create the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 21:07:31 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2012-10-08T21:07:31Z</dc:date>
    <item>
      <title>%Sysevalf</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sysevalf/m-p/89179#M4373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I was reading a paper on Do loops and Do loops&amp;nbsp; in Macros&lt;/P&gt;&lt;P&gt;&lt;A href="http://analytics.ncsu.edu/sesug/2010/FF01.Woodruff.pdf" title="http://analytics.ncsu.edu/sesug/2010/FF01.Woodruff.pdf"&gt;http://analytics.ncsu.edu/sesug/2010/FF01.Woodruff.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On page 18 it says you&amp;nbsp; can use this method&lt;/P&gt;&lt;P&gt; only when you intervals to be calculated that are a factor of 10; &lt;/P&gt;&lt;P&gt;for .1 divide by 10,&lt;/P&gt;&lt;P&gt; for .2 divide by 5 and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for .5 divide by 2.&amp;nbsp; (if we do this we get the values from 5.0,5.5 6.0 so on) We actually wanted 10.0 10.5 11.0 11.5 etc????????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Macro Test ;&lt;/P&gt;&lt;P&gt;%Do I = %SysEvalF( 1 * 10 ) %To %SysEvalF( 2 * 10 ) ;&lt;/P&gt;&lt;P&gt;%Put I = %sysEvalF( &amp;amp;I / 10 ) ;&lt;/P&gt;&lt;P&gt;%End ;&lt;/P&gt;&lt;P&gt;%Mend ;&lt;/P&gt;&lt;P&gt;%Test&lt;/P&gt;&lt;P&gt;I = 1&lt;/P&gt;&lt;P&gt;I = 1.1&lt;/P&gt;&lt;P&gt;I = 1.2&lt;/P&gt;&lt;P&gt;I = 1.3&lt;/P&gt;&lt;P&gt;I = 1.4&lt;/P&gt;&lt;P&gt;I = 1.5&lt;/P&gt;&lt;P&gt;I = 1.6&lt;/P&gt;&lt;P&gt;I = 1.7&lt;/P&gt;&lt;P&gt;I = 1.8&lt;/P&gt;&lt;P&gt;I = 1.9&lt;/P&gt;&lt;P&gt;I = 2&lt;/P&gt;&lt;P&gt;In the above code we have used the %SysEvalF for the Start, Stop and in the %PUT to increment the values from 1&lt;/P&gt;&lt;P&gt;to 2 by 0.1. This works solely because the math in the Start and Stop values will create the needed number of&lt;/P&gt;&lt;P&gt;iterations and the %SysEvalF in the %PUT will manipulate the values to create the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 21:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sysevalf/m-p/89179#M4373</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2012-10-08T21:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: %Sysevalf</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sysevalf/m-p/89180#M4374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karun: Not sure what your question is.&amp;nbsp; You could get the values you want with (although the %SysEvalF is only really needed for the 2nd of the two %put statements):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Macro Test ;&lt;/P&gt;&lt;P&gt;%Do I = %SysEvalF( 1 * 10 ) %To %SysEvalF( 2 * 10 ) ;&lt;/P&gt;&lt;P&gt;%Put I = %sysEvalF( &amp;amp;I&amp;nbsp; ) ;&lt;/P&gt;&lt;P&gt;%Put I = %sysEvalF( &amp;amp;I + .5 ) ;&lt;/P&gt;&lt;P&gt;%End ;&lt;/P&gt;&lt;P&gt;%Mend ;&lt;/P&gt;&lt;P&gt;%Test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 22:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sysevalf/m-p/89180#M4374</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-08T22:44:54Z</dc:date>
    </item>
  </channel>
</rss>

