<?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 trace sas program? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320723#M70670</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you want to trace/debug the flow of a SAS data step, you can use the /debug option.&lt;/P&gt;
&lt;P&gt;example: data weight_club / &lt;STRONG&gt;debug&lt;/STRONG&gt;; ..... run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see more example and debug commands usage example, checkout this link &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000510023.htm" target="_self"&gt;DATA Step Debugger&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2016 12:42:00 GMT</pubDate>
    <dc:creator>AhmedAl_Attar</dc:creator>
    <dc:date>2016-12-22T12:42:00Z</dc:date>
    <item>
      <title>how to trace sas program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320716#M70667</link>
      <description>&lt;PRE&gt;&lt;SPAN class="codeFocus"&gt;data weight_club;&lt;/SPAN&gt;  
   input IdNumber 1-4 Name $ 6-24 Team $ StartWeight EndWeight; 
   Loss=StartWeight-EndWeight;
   datalines; 
1023 David Shaw          red 189 165 
1049 Amelia Serrano      yellow 145 124 
1219 Alan Nance          red 210 192 
1246 Ravi Sinha          yellow 194 177  
1078 Ashley McKnight     red 127 118  
; 
run;  &lt;BR /&gt;&lt;BR /&gt;my question is how to trace this program , line by line and  control goes from which statement to which statement?&lt;BR /&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 12:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320716#M70667</guid>
      <dc:creator>balu_g</dc:creator>
      <dc:date>2016-12-22T12:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to trace sas program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320717#M70668</link>
      <description>&lt;P&gt;What do you mean by TRACE? Typically this is a process to determine the flow of a program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are are you looking for as output?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 12:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320717#M70668</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-22T12:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to trace sas program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320721#M70669</link>
      <description>&lt;P&gt;You might&amp;nbsp;want to look at the data step debugger. Available in DMS SAS (SAS&amp;nbsp;old fat client) or the latest version of Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not feasible, insert PUT statements&amp;nbsp;in the code to track whats happening and what values variables have.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 12:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320721#M70669</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-12-22T12:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to trace sas program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320723#M70670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you want to trace/debug the flow of a SAS data step, you can use the /debug option.&lt;/P&gt;
&lt;P&gt;example: data weight_club / &lt;STRONG&gt;debug&lt;/STRONG&gt;; ..... run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see more example and debug commands usage example, checkout this link &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000510023.htm" target="_self"&gt;DATA Step Debugger&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 12:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320723#M70670</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2016-12-22T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to trace sas program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320732#M70678</link>
      <description>&lt;P&gt;If this is what you mean by "trace", you would normally add PUT statements to a DATA step. &amp;nbsp;For example, after the DATA statement, add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put '#1 ' _all_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the INPUT statement, add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put '#2 ' _all_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the LOSS= statement, add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put '#3 ' _all_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are dealing with large numbers of observations, you might want to limit the number of messages you get. &amp;nbsp;For example, yo u might limit the number of observations read in using OBS=, or you might condition the PUT statements by adding:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If _n_ &amp;lt; 10 then put ......;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 13:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-trace-sas-program/m-p/320732#M70678</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-12-22T13:37:17Z</dc:date>
    </item>
  </channel>
</rss>

