<?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: what option to display data step execution/resovle values in LOG in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201227#M50228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned you can generate LOTS of output; But PUT is conditional so if you are looking for specific values or combinations of value or missing values you can selectively report on them.&lt;/P&gt;&lt;P&gt;A brief example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Infile datasource;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input &amp;lt;input a bunch of variables from the data source&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if DateOfBirth &amp;gt; DateOfService then put "ERROR: Date of Birth after Date of Service for ID " Idvar dateofbirth dateofservice;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;So I get a message in the log that we have some error related to two dates and identifying information.&lt;/P&gt;&lt;P&gt;Added benefit, if you start the message with ERROR: or WARNING: in upper case with the colon then the text in the log will appear with the colors you have set for error or warnings, default red and yellow respectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 15:12:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-04-22T15:12:43Z</dc:date>
    <item>
      <title>what option to display data step execution/resovle values in LOG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201224#M50225</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;what option to display data step execution&amp;nbsp; /resolve values in LOG window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like we use MPRINT, SYMBOLGEN in Macro to see resolve values in log file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to see data step (&lt;STRONG&gt;like Do loop values&lt;/STRONG&gt; )execution&amp;nbsp; /resolve values in log file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Rajasekhar Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 04:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201224#M50225</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2015-04-22T04:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: what option to display data step execution/resovle values in LOG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201225#M50226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For $100: What is "put" and or "putlog"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 04:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201225#M50226</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-04-22T04:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: what option to display data step execution/resovle values in LOG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201226#M50227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is base SAS then put and putlog. I don't know of any data step options, and I don't believe one exists. Of course the use of data steps are meant to process large amounts of data, so when reporting the value(s) of a variable(s) every time a data step loops would create even larger log files.&lt;/P&gt;&lt;P&gt;use putlog, especially if you are using put to output to a file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;use this to report the value of a single variable to the log:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;putlog var=;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;use this to report all variables to the log:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;putlog _all_;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Philip Coltharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201226#M50227</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2015-04-22T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: what option to display data step execution/resovle values in LOG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201227#M50228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned you can generate LOTS of output; But PUT is conditional so if you are looking for specific values or combinations of value or missing values you can selectively report on them.&lt;/P&gt;&lt;P&gt;A brief example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Infile datasource;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input &amp;lt;input a bunch of variables from the data source&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if DateOfBirth &amp;gt; DateOfService then put "ERROR: Date of Birth after Date of Service for ID " Idvar dateofbirth dateofservice;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;So I get a message in the log that we have some error related to two dates and identifying information.&lt;/P&gt;&lt;P&gt;Added benefit, if you start the message with ERROR: or WARNING: in upper case with the colon then the text in the log will appear with the colors you have set for error or warnings, default red and yellow respectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-option-to-display-data-step-execution-resovle-values-in-LOG/m-p/201227#M50228</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-22T15:12:43Z</dc:date>
    </item>
  </channel>
</rss>

