<?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: put statement doubt in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55544#M11824</link>
    <description>but, i am notable to see this simple text in the log:  'NOTE- ' &lt;BR /&gt;
i am seeing direct values only.  y?&lt;BR /&gt;
&lt;BR /&gt;
the output in log is:&lt;BR /&gt;
&lt;BR /&gt;
NOTE: A B Y&lt;BR /&gt;
      1 2 2&lt;BR /&gt;
      3 4 4&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
from above,&lt;BR /&gt;
  &lt;B&gt;NOTE: A B Y&lt;/B&gt;  is coming from 1st put i.e.,     if _n_ eq 1 then put 'NOTE: A B Y';&lt;BR /&gt;
&lt;BR /&gt;
then wht abt  'NOTE- '  from 2nd put statement? where it is?

Message was edited by: pavan</description>
    <pubDate>Mon, 20 Oct 2008 12:49:27 GMT</pubDate>
    <dc:creator>Pavan_SAS</dc:creator>
    <dc:date>2008-10-20T12:49:27Z</dc:date>
    <item>
      <title>put statement doubt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55542#M11822</link>
      <description>data _null_;&lt;BR /&gt;
input a b;&lt;BR /&gt;
   y = max(a,b);&lt;BR /&gt;
   if _n_ eq 1 then put 'NOTE: A B Y';&lt;BR /&gt;
   put 'NOTE- ' (_all_)(:);&lt;BR /&gt;
   cards;&lt;BR /&gt;
   1 2&lt;BR /&gt;
   3 4&lt;BR /&gt;
   ;&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
what above put statement is doing?&lt;BR /&gt;
it is displaying the data into log, i know that.&lt;BR /&gt;
but how, explain?&lt;BR /&gt;
means i am notable to get what is the meaning of this :  'NOTE- ' (_all_)(:)&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
pavan.

Message was edited by: pavan</description>
      <pubDate>Mon, 20 Oct 2008 04:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55542#M11822</guid>
      <dc:creator>Pavan_SAS</dc:creator>
      <dc:date>2008-10-20T04:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: put statement doubt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55543#M11823</link>
      <description>The PUT statement enables you to write information that you specify, including text strings and variable values, to the log. Values can be written in column, list, formatted, or named output style.(footnote 1) Used as a screening device, the PUT statement can also be a useful debugging tool. For example, the following statement writes the values of all variables, including the automatic variables _ERROR_ and _N_, that are defined in the current DATA step: &lt;BR /&gt;
&lt;BR /&gt;
'NOTE- ' is just plain text&lt;BR /&gt;
&lt;BR /&gt;
_all_ outputs all variables in you data.&lt;BR /&gt;
&lt;BR /&gt;
(_all_)(:) just means - supress variable names in the output. Try change it to (=);

Message was edited by: Geniz</description>
      <pubDate>Mon, 20 Oct 2008 11:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55543#M11823</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2008-10-20T11:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: put statement doubt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55544#M11824</link>
      <description>but, i am notable to see this simple text in the log:  'NOTE- ' &lt;BR /&gt;
i am seeing direct values only.  y?&lt;BR /&gt;
&lt;BR /&gt;
the output in log is:&lt;BR /&gt;
&lt;BR /&gt;
NOTE: A B Y&lt;BR /&gt;
      1 2 2&lt;BR /&gt;
      3 4 4&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
from above,&lt;BR /&gt;
  &lt;B&gt;NOTE: A B Y&lt;/B&gt;  is coming from 1st put i.e.,     if _n_ eq 1 then put 'NOTE: A B Y';&lt;BR /&gt;
&lt;BR /&gt;
then wht abt  'NOTE- '  from 2nd put statement? where it is?

Message was edited by: pavan</description>
      <pubDate>Mon, 20 Oct 2008 12:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55544#M11824</guid>
      <dc:creator>Pavan_SAS</dc:creator>
      <dc:date>2008-10-20T12:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: put statement doubt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55545#M11825</link>
      <description>If you in SAS put error, warning or note in the log, it is treated special - ie. different colors.&lt;BR /&gt;
&lt;BR /&gt;
"NOTE-" equals "don't write the word Note" - put the output is indended. &lt;BR /&gt;
If you wrote PAVAN- or NOTE+, it would have no special meaning for SAS.</description>
      <pubDate>Mon, 20 Oct 2008 13:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-doubt/m-p/55545#M11825</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2008-10-20T13:15:24Z</dc:date>
    </item>
  </channel>
</rss>

