<?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: hello world problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76095#M16421</link>
    <description>My guess is that you probably executed the code once without closing the %MACRO statement with the %MEND statement. So, every next time you executed the code, SAS compiler was still waiting for the closing %MEND keyword appending the code to the opened macro instead of compiling and executing it. &lt;BR /&gt;
&lt;BR /&gt;
If that happens again you can just execute the mend statement and then try again the full execution of the macro.</description>
    <pubDate>Mon, 26 Apr 2010 17:10:24 GMT</pubDate>
    <dc:creator>Hobbes</dc:creator>
    <dc:date>2010-04-26T17:10:24Z</dc:date>
    <item>
      <title>hello world problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76092#M16418</link>
      <description>can someone tell me why this doesn't print anything? I&lt;BR /&gt;
&lt;BR /&gt;
%macro test;&lt;BR /&gt;
 %put "hello world";&lt;BR /&gt;
%mend test;&lt;BR /&gt;
&lt;BR /&gt;
 %test;</description>
      <pubDate>Wed, 21 Apr 2010 22:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76092#M16418</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-21T22:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: hello world problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76093#M16419</link>
      <description>Hi:&lt;BR /&gt;
  Did you look in your SAS log??? That's where %PUT output goes. Your macro worked for me. SAS Log below. Where did you envision having the "hello world" appear????&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
1002  %macro test;&lt;BR /&gt;
1003  %put "hello world";&lt;BR /&gt;
1004  %mend test;&lt;BR /&gt;
1005&lt;BR /&gt;
1006  %test;&lt;BR /&gt;
"hello world"&lt;BR /&gt;
            &lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 21 Apr 2010 22:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76093#M16419</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-21T22:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: hello world problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76094#M16420</link>
      <description>I was expecting it to show up exactly where it worked for you. I restarted sas and it worked. I'm not really sure what I did.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 21 Apr 2010 22:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76094#M16420</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-21T22:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: hello world problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76095#M16421</link>
      <description>My guess is that you probably executed the code once without closing the %MACRO statement with the %MEND statement. So, every next time you executed the code, SAS compiler was still waiting for the closing %MEND keyword appending the code to the opened macro instead of compiling and executing it. &lt;BR /&gt;
&lt;BR /&gt;
If that happens again you can just execute the mend statement and then try again the full execution of the macro.</description>
      <pubDate>Mon, 26 Apr 2010 17:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hello-world-problem/m-p/76095#M16421</guid>
      <dc:creator>Hobbes</dc:creator>
      <dc:date>2010-04-26T17:10:24Z</dc:date>
    </item>
  </channel>
</rss>

