<?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: Equivalent to VBA step mode? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123016#M25234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi25/25/btu/25p052.pdf" title="http://www2.sas.com/proceedings/sugi25/25/btu/25p052.pdf"&gt;http://www2.sas.com/proceedings/sugi25/25/btu/25p052.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can end your program in certain places&amp;nbsp; (Add run early) and/or add put statements in relevant locations to see the status of variables through the data step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also post here &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 20:14:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-01-11T20:14:08Z</dc:date>
    <item>
      <title>Equivalent to VBA step mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123015#M25233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll premise by saying I am a very new SAS user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I needed to debug some logic statements. Ordinarily in VBA I would execute the code in step mode (F8), and be able to see which statements/variables/calculations would be tripping me up. Is there any equivalent to this in SAS? If not, how would you recommend debugging long logic statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 20:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123015#M25233</guid>
      <dc:creator>rwnj</dc:creator>
      <dc:date>2013-01-11T20:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent to VBA step mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123016#M25234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi25/25/btu/25p052.pdf" title="http://www2.sas.com/proceedings/sugi25/25/btu/25p052.pdf"&gt;http://www2.sas.com/proceedings/sugi25/25/btu/25p052.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can end your program in certain places&amp;nbsp; (Add run early) and/or add put statements in relevant locations to see the status of variables through the data step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also post here &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 20:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123016#M25234</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-11T20:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent to VBA step mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123017#M25235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rwnj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another quick and dirty method is to add this statement just before your DATA step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options obs=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you might want to make sure that you won't destroy any permanent SAS data sets by replacing them with 0 observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you have to realize that debugging tricky logic means more than getting rid of the error messages.&amp;nbsp; Even without error messages, there is the question of whether the logic does the right thing.&amp;nbsp; You may need to devise some data that will test what you expect the logic to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 20:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Equivalent-to-VBA-step-mode/m-p/123017#M25235</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-01-11T20:33:01Z</dc:date>
    </item>
  </channel>
</rss>

