<?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 vs put summary question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77648#M16822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent point, I finally got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2012 01:44:13 GMT</pubDate>
    <dc:creator>ZRick</dc:creator>
    <dc:date>2012-04-11T01:44:13Z</dc:date>
    <item>
      <title>%put vs put summary question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77643#M16817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just want to summarize put vs %put,&lt;/P&gt;&lt;P&gt;This code I thought can summarize where to use %put or put and what it means to data step variable, macro variable, char string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let x=toyota;&lt;/P&gt;&lt;P&gt;%macro m;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put &amp;amp;x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put &amp;amp;x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'x';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put "&amp;amp;x";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put has to be inside the the data step, &lt;/P&gt;&lt;P&gt;%put can be anywhere inside data step or macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am I understanding that correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 17:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77643#M16817</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2012-04-10T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: %put vs put summary question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77644#M16818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%Put can be in open code and doesn't need quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 17:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77644#M16818</guid>
      <dc:creator>Jay_TxOAG</dc:creator>
      <dc:date>2012-04-10T17:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: %put vs put summary question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77645#M16819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZRick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUT can write text strings, as well as values found in the DATA step variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%PUT can write text strings only (including the values of macro variables), NEVER the contents of a DATA step.&amp;nbsp; You might utilize other tools such as CALL SYMPUT to transfer information from a DATA step to a macro variable.&amp;nbsp; After that, %PUT can write the macro variable's value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 17:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77645#M16819</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-04-10T17:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: %put vs put summary question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77646#M16820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;%PUT can write text strings only (including the values of macro variables), NEVER the contents of a DATA step. &lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is still useable by putting %put inside the data step right? I mean, at least sas didn't report error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 18:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77646#M16820</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2012-04-10T18:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: %put vs put summary question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77647#M16821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really.&amp;nbsp; It doesn't cause an error, but %PUT is not part of the DATA step.&amp;nbsp; You can see that by looking at the order of the messages in the log.&amp;nbsp; Even though the %PUT statement appears just before the RUN statement, the message from %PUT prints first, before the DATA step begins to execute.&amp;nbsp; The %PUT statement could have appeared before the DATA step, after the DATA step, or in the middle of the DATA step, and it would have written the same message.&amp;nbsp; The only connection between the DATA step and %PUT would be if the DATA step uses CALL SYMPUT to change the value of &amp;amp;X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 19:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77647#M16821</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-04-10T19:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: %put vs put summary question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77648#M16822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent point, I finally got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 01:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-vs-put-summary-question/m-p/77648#M16822</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2012-04-11T01:44:13Z</dc:date>
    </item>
  </channel>
</rss>

