<?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 How can I create an ODS OUTPUT of LSMeans in SAS Studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641471#M9063</link>
    <description>&lt;P&gt;Hi I am trying to create an ODS OUTPUT of the LSMeans for each of my groups so that I can use that data to graph them later. For reference I am doing a two way ANOVA with one blocking factor. When I run the code I keep getting a warning message shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Output 'GLM.LSMEANS.A_flour_B_temp.Y_protein.LSMeans' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify that the NOPRINT option is not used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included the code that I am using below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA bread;
	INPUT A_flour $ B_temp $ C_day $ Y_protein;
DATALINES;
A  T1  D1  5.8
A  T2  D1  4.6
A  T3  D1  4.7
B  T1  D1  8.4
B  T2  D1  5.4
B  T3  D1  4.9
C  T1  D1 16.0
C  T2  D1  5.2
C  T3  D1  4.2

A  T1  D2 11.4
A  T2  D2  5.2
A  T3  D2  5.2
B  T1  D2  7.9
B  T2  D2  7.9
B  T3  D2  7.2
C  T1  D2 17.7
C  T2  D2  7.0
C  T3  D2  6.3

A  T1  D3 10.5
A  T2  D3  9.7
A  T3  D3  4.9
B  T1  D3 14.7
B  T2  D3  8.1
B  T3  D3  6.9
C  T1  D3 16.9
C  T2  D3 11.5
C  T3  D3  7.2
;
RUN;


PROC GLM DATA=bread;
	CLASS A_flour B_temp C_day;
	MODEL Y_protein = A_flour  B_temp  A_flour*B_temp  C_day;
	OUTPUT OUT=junk PREDICTED=yhat RESIDUAL=e;
QUIT;
PROC UNIVARIATE DATA=junk NORMAL PLOT;
	VAR e;
RUN;
PROC SGPLOT DATA=junk;
	SCATTER Y=e X=yhat;
RUN;


ODS OUTPUT GLM.LSMEANS.A_flour_B_temp.Y_protein.LSMeans = LSM_2wAB;
PROC GLM DATA=bread;
	CLASS A_flour B_temp C_day;
	MODEL Y_protein = A_flour  B_temp  A_flour*B_temp  C_day;
	LSMEANS A_flour*B_temp;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please let me know if you have any guidance.&lt;/P&gt;&lt;P&gt;Thank you for your help!!&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 20:54:40 GMT</pubDate>
    <dc:creator>Jenna3</dc:creator>
    <dc:date>2020-04-20T20:54:40Z</dc:date>
    <item>
      <title>How can I create an ODS OUTPUT of LSMeans in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641471#M9063</link>
      <description>&lt;P&gt;Hi I am trying to create an ODS OUTPUT of the LSMeans for each of my groups so that I can use that data to graph them later. For reference I am doing a two way ANOVA with one blocking factor. When I run the code I keep getting a warning message shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Output 'GLM.LSMEANS.A_flour_B_temp.Y_protein.LSMeans' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify that the NOPRINT option is not used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included the code that I am using below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA bread;
	INPUT A_flour $ B_temp $ C_day $ Y_protein;
DATALINES;
A  T1  D1  5.8
A  T2  D1  4.6
A  T3  D1  4.7
B  T1  D1  8.4
B  T2  D1  5.4
B  T3  D1  4.9
C  T1  D1 16.0
C  T2  D1  5.2
C  T3  D1  4.2

A  T1  D2 11.4
A  T2  D2  5.2
A  T3  D2  5.2
B  T1  D2  7.9
B  T2  D2  7.9
B  T3  D2  7.2
C  T1  D2 17.7
C  T2  D2  7.0
C  T3  D2  6.3

A  T1  D3 10.5
A  T2  D3  9.7
A  T3  D3  4.9
B  T1  D3 14.7
B  T2  D3  8.1
B  T3  D3  6.9
C  T1  D3 16.9
C  T2  D3 11.5
C  T3  D3  7.2
;
RUN;


PROC GLM DATA=bread;
	CLASS A_flour B_temp C_day;
	MODEL Y_protein = A_flour  B_temp  A_flour*B_temp  C_day;
	OUTPUT OUT=junk PREDICTED=yhat RESIDUAL=e;
QUIT;
PROC UNIVARIATE DATA=junk NORMAL PLOT;
	VAR e;
RUN;
PROC SGPLOT DATA=junk;
	SCATTER Y=e X=yhat;
RUN;


ODS OUTPUT GLM.LSMEANS.A_flour_B_temp.Y_protein.LSMeans = LSM_2wAB;
PROC GLM DATA=bread;
	CLASS A_flour B_temp C_day;
	MODEL Y_protein = A_flour  B_temp  A_flour*B_temp  C_day;
	LSMEANS A_flour*B_temp;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please let me know if you have any guidance.&lt;/P&gt;&lt;P&gt;Thank you for your help!!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 20:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641471#M9063</guid>
      <dc:creator>Jenna3</dc:creator>
      <dc:date>2020-04-20T20:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an ODS OUTPUT of LSMeans in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641476#M9064</link>
      <description>&lt;P&gt;It appears to work for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 119        ODS OUTPUT GLM.LSMEANS.A_flour_B_temp.Y_protein.LSMeans = LSM_2wAB;
 120        PROC GLM DATA=bread;
 121            CLASS A_flour B_temp C_day;
 122            MODEL Y_protein = A_flour  B_temp  A_flour*B_temp  C_day;
 123            LSMEANS A_flour*B_temp;
 124        quit;
 
 NOTE: The data set WORK.LSM_2WAB has 9 observations and 5 variables.
 NOTE: PROCEDURE GLM used (Total process time):
       real time           0:00:00.41
       cpu time            0:00:00.15
       Timestamp           April 20, 2020 02:02:39 PM&lt;/PRE&gt;
&lt;P&gt;If you start a new SAS Studio session and run only the code you included in your message, does it work?&amp;nbsp; My guess is that something in your environment is set incorrectly, but it's difficult to tell what.&amp;nbsp; Do you have any other ODS statements earlier in the program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641476#M9064</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2020-04-20T21:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an ODS OUTPUT of LSMeans in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641478#M9065</link>
      <description>ods output lsmeans = lsm2wAB;&lt;BR /&gt;&lt;BR /&gt;Does that not work?</description>
      <pubDate>Mon, 20 Apr 2020 21:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641478#M9065</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-20T21:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an ODS OUTPUT of LSMeans in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641479#M9066</link>
      <description>&lt;P&gt;Thanks for the suggestion. I started a new SAS Studio session and ran only the code in the question, but I still get the same error message. I am using SAS studio through the university edition if that makes a difference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641479#M9066</guid>
      <dc:creator>Jenna3</dc:creator>
      <dc:date>2020-04-20T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an ODS OUTPUT of LSMeans in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641483#M9067</link>
      <description>It does work!&lt;BR /&gt;Thanks for your help Reeza!</description>
      <pubDate>Mon, 20 Apr 2020 21:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-create-an-ODS-OUTPUT-of-LSMeans-in-SAS-Studio/m-p/641483#M9067</guid>
      <dc:creator>Jenna3</dc:creator>
      <dc:date>2020-04-20T21:29:46Z</dc:date>
    </item>
  </channel>
</rss>

