<?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 WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or path is in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741341#M36026</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO BLUE_SG_da (trait);
 PROC MIXED DATA=WORK.bo cl=wald covtest;
 CLASS ID BLOCK EVR ;
 MODEL &amp;amp;TRAIT=ID/s;
 Random  EVR EVR*ID BLOCK(EVR);
 LSMEANS ID; 
 ODS output lsmeans=BLUE_SG_&amp;amp;trait;
 run;
 quit;
 %mend BLUE_SG_da;
 %BLUE_SG_da (trait= DRYWT_PL);
 %BLUE_SG_da (trait= PROP_DRY_WT);
 run;
 %macro data(trait=);
 data BLUE_SG_&amp;amp;trait; set BLUE_SG_&amp;amp;trait; &amp;amp;trait=estimate; keep ID &amp;amp;trait;
 run;
 %mend data;
 %data(trait=DRYWT_PL);
 %data(trait=PROP_DRY_WT);
  run;
 data BLUE_SG_total; merge BLUE_SG_DRYWT_PL BLUE_SG_PROP_DRY_WT;  by ID; 
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I. have tried to generate ls means. &amp;nbsp;with the above script&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing with the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: Output 'lsmeans' was not created. Make sure that the output object name, label, or path is spelled correctly. Also,&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;verify that the appropriate procedure options are used to produce the requested output object. For example, verify that&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;the NOPRINT option is not used.&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 May 2021 04:00:21 GMT</pubDate>
    <dc:creator>venkkat</dc:creator>
    <dc:date>2021-05-14T04:00:21Z</dc:date>
    <item>
      <title>WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or path is</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741341#M36026</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO BLUE_SG_da (trait);
 PROC MIXED DATA=WORK.bo cl=wald covtest;
 CLASS ID BLOCK EVR ;
 MODEL &amp;amp;TRAIT=ID/s;
 Random  EVR EVR*ID BLOCK(EVR);
 LSMEANS ID; 
 ODS output lsmeans=BLUE_SG_&amp;amp;trait;
 run;
 quit;
 %mend BLUE_SG_da;
 %BLUE_SG_da (trait= DRYWT_PL);
 %BLUE_SG_da (trait= PROP_DRY_WT);
 run;
 %macro data(trait=);
 data BLUE_SG_&amp;amp;trait; set BLUE_SG_&amp;amp;trait; &amp;amp;trait=estimate; keep ID &amp;amp;trait;
 run;
 %mend data;
 %data(trait=DRYWT_PL);
 %data(trait=PROP_DRY_WT);
  run;
 data BLUE_SG_total; merge BLUE_SG_DRYWT_PL BLUE_SG_PROP_DRY_WT;  by ID; 
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I. have tried to generate ls means. &amp;nbsp;with the above script&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing with the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: Output 'lsmeans' was not created. Make sure that the output object name, label, or path is spelled correctly. Also,&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;verify that the appropriate procedure options are used to produce the requested output object. For example, verify that&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;the NOPRINT option is not used.&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 May 2021 04:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741341#M36026</guid>
      <dc:creator>venkkat</dc:creator>
      <dc:date>2021-05-14T04:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741381#M36027</link>
      <description>&lt;P&gt;The way to debug code like this is to isolate the code that is giving the problem and remove it from the macro, if possible. Your code seems to work on the following simulated data, so perhaps there is something unusual about your data? Run the PROC MIXED against your actual data and examine the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let trait=DRYWT_PL;
data bo_fake;
call streaminit(1);
do n = 1 to 20;
do ID = 0 to 1;
  do block=0 to 2;
     do evr=0 to 1;
       &amp;amp;trait = id + evr + 2*evr*ID - 3*block*evr + rand("Normal");
       output;
      end;
   end;
end;
end;
run;

ods trace on;
PROC MIXED DATA=WORK.bo_FAKE cl=wald covtest;
 CLASS ID BLOCK EVR ;
 MODEL &amp;amp;TRAIT=ID/s;
 Random  EVR EVR*ID BLOCK(EVR);
 LSMEANS ID; 
 ODS output lsmeans=BLUE_SG_trait;
 run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 May 2021 11:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741381#M36027</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-05-14T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741493#M36034</link>
      <description>Also check that your PROC MIXED model converges.  If the model fails to converge the ODS OUTPUT LSMEANS= data set would not be created.</description>
      <pubDate>Fri, 14 May 2021 15:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741493#M36034</guid>
      <dc:creator>STAT_Kathleen</dc:creator>
      <dc:date>2021-05-14T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741566#M36037</link>
      <description>&lt;P&gt;If Kathleen is correct, then note that you can add ConvergenceStatus=&amp;lt;data set name&amp;gt; to the ODS output statement, and then read the variable called 'status' to determine if the model has failed to converge (a non-zero value indicates failure).&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 21:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741566#M36037</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2021-05-14T21:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741686#M36060</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/9374"&gt;@IanWakeling&lt;/a&gt;&amp;nbsp; you were right&amp;nbsp; have tries to do as below script&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; PROC MIXED DATA=WORK.MBG cl=wald covtest;

 CLASS ID BLOCK EVR ;
 MODEL dw=ID/s;
 Random  EVR EVR*ID BLOCK(EVR);
 LSMEANS ID; 
 ODS output ConvergenceStatus=BLUE_SG_dw;
 run;
 quit;
 proc print data=BLUE_SG_dw;
   id status;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i have found with error 1 in status that means convergence not met the criteria so it did not converge,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;May i know which model is better fit to my data to calculate the lsmeans&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 03:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741686#M36060</guid>
      <dc:creator>venkkat</dc:creator>
      <dc:date>2021-05-16T03:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741690#M36062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; thanks for your response, i have tries without macros (trait by trait) it works for few traits and i am facing errors for some traits. for instance the Lsmeans for dry weight is generated but convergence is not met for Plant height. i have also wrote the script as&amp;nbsp;&lt;SPAN&gt;ConvergenceStatus=work.mbg i have attached you the results of two analysis&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 03:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741690#M36062</guid>
      <dc:creator>venkkat</dc:creator>
      <dc:date>2021-05-16T03:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741691#M36063</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/9374"&gt;@IanWakeling&lt;/a&gt;&amp;nbsp; please find the results&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 16 May 2021 03:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741691#M36063</guid>
      <dc:creator>venkkat</dc:creator>
      <dc:date>2021-05-16T03:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741718#M36065</link>
      <description>The specified model might  not be appropriate for your data and therefore have caused convergence issues. If you can send in data that would be helpful.</description>
      <pubDate>Sun, 16 May 2021 12:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741718#M36065</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-05-16T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Output 'lsmeans' was not created.  Make sure that the output object name, label, or pat</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741817#M36077</link>
      <description>&lt;P&gt;Looking at the ouput posted I wonder if you are modelling the correct data?&amp;nbsp; Mixed is saying that the class variable EVR has the value '1' for all observations - surely that is not what you intend?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding my earlier comment&amp;nbsp; - the output from Mixed will always tell you about the convergence status of you model, my point is that when writing a macro that uses this proc it is always a good idea to get the macro to programmatically check the convergence status of the model.&amp;nbsp; You could do this by writing the value of 'status' to a macro variable and then making any further analysis contingent on the value being zero.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 08:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Output-lsmeans-was-not-created-Make-sure-that-the-output/m-p/741817#M36077</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2021-05-17T08:40:24Z</dc:date>
    </item>
  </channel>
</rss>

