<?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: SAS  is not responding after finishing SAS MACRO in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192851#M36318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a wild guess ... the problem is somewhere in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;*syntax of generate data and analyze data;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to write the LOG to a file and then if you have to kill the program, you can still inspect the LOG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 17:31:04 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2014-03-05T17:31:04Z</dc:date>
    <item>
      <title>SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192850#M36317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a SAS MACRO to generate data and then analyze them using PROC GLIMMIX and save/output estimates of fixed effects. The trial running of 10 replications was fine so I let it run 100 replications. After waiting for a few days, it looks like the SAS MACRO finished, but, SAS is not responding. Though I got all files (so far as I checked), I am not fully sure the simulation is done and the estimates are correct. Besides, the log file and the output file are not complete for sure. I don't want to force the program to close because I want to check the log and output file.I'm afraid to lose the information. I attached the set up of my MACRO. Thanks for your time and any comments are appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINTTO LOG= "C:\DISSERTATION\SIMULATION\LL.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT="C:\DISSERTATION\SIMULATION\OUTPUT.TXT" ;&lt;/P&gt;&lt;P&gt;*options symbolgen ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO SIMU(MC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%DO SSDIF=1 %TO 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;SSDIF=1 %THEN %LET SDIF=0.5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *STUDENT LEVEL DIF size: 0.5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;SSDIF=2 %THEN %LET SDIF=0.8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *STUDENT LEVEL DIF size: 0.8;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%DO STDIF=1 %TO 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;STDIF=1 %THEN %LET TDIF=0.5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *TEACHER LEVEL DIF size: 0.5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;STDIF=2 %THEN %LET TDIF=0.8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *TEACHER LEVEL DIF size: 0.8;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;%DO SRF=1 %TO 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;SRF=1 %THEN %LET RF=0.5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *50% REFERENCE GROUP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;SRF=2 %THEN %LET RF=0.8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *80% REFERENCE GROUP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;%DO NTDIF=1 %TO 4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NTDIF=1 %THEN %LET NDIF=0.125;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *5 ITEMS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NTDIF=2 %THEN %LET NDIF=0.25;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *10 ITEMS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NTDIF=3 %THEN %LET NDIF=0.375;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *15 ITEMS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NTDIF=4 %THEN %LET NDIF=0.50;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *20 ITEMS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%DO NL=1 %TO 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NL=1 %THEN %LET NLVL=1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *TEACHER-STUDENT LEVELS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NL=2 %THEN %LET NLVL=2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *TEACHER LEVEL ONLY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let FF=%sysevalf(1-&amp;amp;RF);&amp;nbsp; &lt;/P&gt;&lt;P&gt;%let step=%sysevalf(1/&amp;amp;FF); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*DO-LOOP FOR replications*/;&lt;/P&gt;&lt;P&gt;%DO C=1 %TO &amp;amp;MC;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;NLVL=1 %THEN %DO;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*syntax of generate data and analyze data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%ELSE %DO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*syntax of generate data and analyze data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;%MEND SIMU;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;%SIMU(100);&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192850#M36317</guid>
      <dc:creator>Yao_W</dc:creator>
      <dc:date>2014-03-05T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192851#M36318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a wild guess ... the problem is somewhere in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;*syntax of generate data and analyze data;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to write the LOG to a file and then if you have to kill the program, you can still inspect the LOG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192851#M36318</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-03-05T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192852#M36319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, without the log, all suggestions fall into the category of "wild guess".&amp;nbsp; Here are a couple of ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, notice you are missing a semicolon after %ELSE %DO.&amp;nbsp; Perhaps the semicolon is actually there but the cut-and-paste-for-posting-purposes erased it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, notice that one way to get this result would be if "syntax to generate data and analyze data" contained a statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;c &amp;gt; 50 %then %let c=50;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would turn your macro logic into an infinite loop when you increase &amp;amp;MC to 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192852#M36319</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-03-05T17:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192853#M36320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Paige. I checked the log though. You are right, the 26th replication of one condition went wrong in PROC IML. But anything before or after is correct. So weird. I have to look up why that happened now. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192853#M36320</guid>
      <dc:creator>Yao_W</dc:creator>
      <dc:date>2014-03-05T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192854#M36321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Astounding. There is a semicolon in the syntax. I must eliminate in the post by mistake.&amp;nbsp; I don't have such condition like &amp;amp;c&amp;gt;50. As I checked the log, there are errors in PROC IML for one replication&amp;nbsp; but no errors related to the logic flow. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192854#M36321</guid>
      <dc:creator>Yao_W</dc:creator>
      <dc:date>2014-03-05T17:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192855#M36322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to try is to make sure to end your procs and data steps with explicit RUN or QUIT statements.&lt;/P&gt;&lt;P&gt;You are definitely missing the RUN from the PROC PRINTTO at the top. And there is no reason why you should need a QUIT at the bottom.&lt;/P&gt;&lt;P&gt;Might not fix the problem but will make the log easier to read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 22:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192855#M36322</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-03-05T22:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS  is not responding after finishing SAS MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192856#M36323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom for your input. I have worked for quite a while to fix other problems and I have figured out why SAS did not respond. I forgot to change the way to show results so SAS created html showing results. Thanks again to all.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 19:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-is-not-responding-after-finishing-SAS-MACRO/m-p/192856#M36323</guid>
      <dc:creator>Yao_W</dc:creator>
      <dc:date>2014-03-06T19:12:02Z</dc:date>
    </item>
  </channel>
</rss>

