<?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 print the value of _n_ in log? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227389#M40967</link>
    <description>I tried with put _n_ as well , but not getting the value of _n_ in log.</description>
    <pubDate>Sat, 26 Sep 2015 11:25:36 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2015-09-26T11:25:36Z</dc:date>
    <item>
      <title>How to print the value of _n_ in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227382#M40961</link>
      <description>&lt;P&gt;Could you please tell me how to print the value of _n_ &amp;nbsp;in log from the following code? I could not see the value of _n_ after placing the put _all_ statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if 1&amp;lt;_n_&amp;lt; %eval(&amp;amp;end_title) then do; put option;end;
put _all_;
if _n_=%eval(&amp;amp;end_title) then do; put option;end;	
put _all_;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Sep 2015 09:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227382#M40961</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2015-09-26T09:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the value of _n_ in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227385#M40963</link>
      <description>&lt;P&gt;This is in data step right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put _ALL_;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;will output all values including the value of _N_.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put _N_=;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;will only output the value of _N_.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 10:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227385#M40963</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-09-26T10:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the value of _n_ in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227389#M40967</link>
      <description>I tried with put _n_ as well , but not getting the value of _n_ in log.</description>
      <pubDate>Sat, 26 Sep 2015 11:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227389#M40967</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2015-09-26T11:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the value of _n_ in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227396#M40970</link>
      <description>Post your full code.</description>
      <pubDate>Sat, 26 Sep 2015 17:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227396#M40970</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-26T17:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the value of _n_ in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227416#M40978</link>
      <description>&lt;P&gt;1- use putlog instead of put (if this works you are using a file statement somewhere)&lt;/P&gt;&lt;P&gt;2- do you see anything at all in the log (if not you have redirected the log)?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 05:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227416#M40978</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-09-27T05:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the value of _n_ in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227550#M41012</link>
      <description>&lt;P&gt;And what is the value of &amp;amp;end_title? Use of %eval in a data step tells me something is being a tad over coded as if &amp;amp;end_title could have a value of 1+3 then the data step will take that just fine.&lt;/P&gt;
&lt;P&gt;If the %eval (&amp;amp;end_title) yields a value of 0 or less then it would not put in either case.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 18:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-the-value-of-n-in-log/m-p/227550#M41012</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-28T18:33:43Z</dc:date>
    </item>
  </channel>
</rss>

