<?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: Debugging - How to print the value of variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145061#M28944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I was looking for name = option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2015 11:51:17 GMT</pubDate>
    <dc:creator>ArchanaSudhir</dc:creator>
    <dc:date>2015-01-31T11:51:17Z</dc:date>
    <item>
      <title>Debugging - How to print the value of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145058#M28941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code prints one observation with 4 variables and I am trying to to find out why. So I tried printing the value of name, rate and capital for each iteration.&lt;/P&gt;&lt;P&gt;Please let me know how to find out values of such variables in data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data banks;&lt;/P&gt;&lt;P&gt;input name$ rate;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;FirstCapital 0.0718&lt;/P&gt;&lt;P&gt;DirectBank 0.0721&lt;/P&gt;&lt;P&gt;VirtualDirect 0.0728&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data newbank;&lt;/P&gt;&lt;P&gt;do year = 1 to 3;&lt;/P&gt;&lt;P&gt;set banks;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;%put name rate capital;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;capital + 5000;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&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, 30 Jan 2015 08:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145058#M28941</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2015-01-30T08:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging - How to print the value of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145059#M28942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of that %PUT statement use &lt;/P&gt;&lt;P&gt;PUT _ALL_ ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 08:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145059#M28942</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2015-01-30T08:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging - How to print the value of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145060#M28943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data newbank;&lt;/P&gt;&lt;P&gt;do year = 1 to 3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set banks;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; put name = rate = capital =;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; capital + 5000;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUT _ALL_;&lt;/P&gt;&lt;P&gt;will display all variables in the Program Data Vector(PDV) which is held in memory while the data step is executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145060#M28943</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2015-01-30T13:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging - How to print the value of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145061#M28944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I was looking for name = option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 11:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145061#M28944</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2015-01-31T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging - How to print the value of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145062#M28945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the question answered &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>Sat, 31 Jan 2015 18:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Debugging-How-to-print-the-value-of-variables/m-p/145062#M28945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-31T18:54:38Z</dc:date>
    </item>
  </channel>
</rss>

