<?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 display a macro variabile in a %window in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467191#M285315</link>
    <description>&lt;P&gt;When you leave out quotes, that tells SAS that &amp;amp;t is the name of a macro variable.&amp;nbsp; The user is allowed to enter a value for it when the %window gets %displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the %display statement allows the user to enter a value for the macro variable named hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want &amp;amp;t to become part of the displayed text, rather than a name that the user can type into the %display, put it in quotes.&amp;nbsp; Double quotes are needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#8&amp;nbsp;&amp;nbsp;@5&amp;nbsp; "&amp;amp;t" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the macro variable t to be supplied by the user when %displaying the %window, get rid of the &amp;amp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#8&amp;nbsp;&amp;nbsp;@5&amp;nbsp; t&amp;nbsp; 5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 5 characters are enough that the user can enter "hello".&lt;/P&gt;</description>
    <pubDate>Sun, 03 Jun 2018 02:53:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-06-03T02:53:10Z</dc:date>
    <item>
      <title>how to display a macro variabile in a %window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467131#M285313</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to display a macro variabile in a %window. My program is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let t=hello;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%window info&lt;/P&gt;&lt;P&gt;#6&amp;nbsp;@5 'your macro variabili is:'&lt;/P&gt;&lt;P&gt;#8&amp;nbsp;@5 &amp;amp;t;&lt;/P&gt;&lt;P&gt;%display info;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with this code I see only 'your macro varibile is:', but I would like tu see 'hello'. How could I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jun 2018 15:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467131#M285313</guid>
      <dc:creator>leti_ors96</dc:creator>
      <dc:date>2018-06-02T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to display a macro variabile in a %window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467156#M285314</link>
      <description>&lt;P&gt;Try using double quotes instead of single Macro variables do not resolve in single quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140550"&gt;@leti_ors96&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to display a macro variabile in a %window. My program is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let t=hello;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%window info&lt;/P&gt;
&lt;P&gt;@#6&amp;nbsp;@5 'your macro variabili is:'&lt;/P&gt;
&lt;P&gt;@#8&amp;nbsp;@5 &amp;amp;t;&lt;/P&gt;
&lt;P&gt;%display info;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But with this code I see only 'your macro varibile is:', but I would like tu see 'hello'. How could I do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jun 2018 19:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467156#M285314</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-02T19:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to display a macro variabile in a %window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467191#M285315</link>
      <description>&lt;P&gt;When you leave out quotes, that tells SAS that &amp;amp;t is the name of a macro variable.&amp;nbsp; The user is allowed to enter a value for it when the %window gets %displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the %display statement allows the user to enter a value for the macro variable named hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want &amp;amp;t to become part of the displayed text, rather than a name that the user can type into the %display, put it in quotes.&amp;nbsp; Double quotes are needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#8&amp;nbsp;&amp;nbsp;@5&amp;nbsp; "&amp;amp;t" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the macro variable t to be supplied by the user when %displaying the %window, get rid of the &amp;amp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#8&amp;nbsp;&amp;nbsp;@5&amp;nbsp; t&amp;nbsp; 5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 5 characters are enough that the user can enter "hello".&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2018 02:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-display-a-macro-variabile-in-a-window/m-p/467191#M285315</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-06-03T02:53:10Z</dc:date>
    </item>
  </channel>
</rss>

