<?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: Proc GenMod and ODS output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378559#M91005</link>
    <description>&lt;P&gt;So what happens instead? What does the log say? Run the macro with MPRINT amd SYMBOLGEN on to see the exact code generated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jul 2017 21:41:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-23T21:41:01Z</dc:date>
    <item>
      <title>Proc GenMod and ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378554#M91000</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;hopefully, this will be an easy one!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm&amp;nbsp;trying to write a macro for Proc Genmod and want to save the dataset for parameter estimates and model fit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've&amp;nbsp;got it all working without a macro, however, when i "macrofy" it, i can't get the ODS output statement to generate the datasets. &amp;nbsp;everything else works fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro ProcGenmodMacro(LIBIN, DATAIN, varWeight, varClass, varModel, varDist, LIBOUT, DATAOUT, varKeep);
	/*ODS GRAPHICS ON;*/
	
	PROC GENMOD DATA = &amp;amp;LIBIN..&amp;amp;DATAIN. /*PLOTS= */ noprint;
		WEIGHT &amp;amp;varWeight. ;
		CLASS 	&amp;amp;varClass. ;
		MODEL AVGPRICE = &amp;amp;varModel.  
			/DIST = &amp;amp;varDist.
			 LINK = LOG
			 TYPE1
			 TYPE3
			/* CORRB
			 covb*/
			 ;
		OUTPUT 			OUT = &amp;amp;LIBOUT..&amp;amp;DATAOUT. (keep = &amp;amp;varKeep. &amp;amp;varModel.)
						PREDICTED	=	EST_AVGPRICE 
						LOWER		=	EST_LOWER_CI 
						UPPER 		=	EST_UPPER_CI
						RESDEV 		=	EST_DEVRES
						STDRESDEV	=	EST_STDDEVRES
						RESLIK 		=	EST_LIKLRES
						/*XBETA		=	EST_LINEARPREDICTOR
						STDXBETA	=	EST_SEBETA*/					
						 ;
	ods output parameterestimates =  &amp;amp;LIBOUT..&amp;amp;DATAOUT.ParamEst 
				modelfit = &amp;amp;LIBOUT..&amp;amp;DATAOUT.Modelfit  /*CorrB = CorrMatrix COVB = COVMATRIX*/;
						 
	RUN;
	
	/*ODS GRAPHICS OFF;*/
%Mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jul 2017 19:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378554#M91000</guid>
      <dc:creator>Squibbles</dc:creator>
      <dc:date>2017-07-23T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GenMod and ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378559#M91005</link>
      <description>&lt;P&gt;So what happens instead? What does the log say? Run the macro with MPRINT amd SYMBOLGEN on to see the exact code generated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 21:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378559#M91005</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-23T21:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GenMod and ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378560#M91006</link>
      <description>&lt;P&gt;Disregard previous post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOPRINT turns off the data generation for ODS, remove that option. If you'd like to not have output close the output destinations, see the post below on how that works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 21:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378560#M91006</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-23T21:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GenMod and ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378561#M91007</link>
      <description>&lt;P&gt;the proc genmod&amp;nbsp;runs fine and it generates the output file fine. but it doesn't do the ODS line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN and MPRINT shows the lines are generating fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPRINT(PROCGENMODMACRO): ods output parameterestimates = GLM.Model1ParamEst modelfit =&lt;BR /&gt;GLM.Model1Modelfit ;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 21:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378561#M91007</guid>
      <dc:creator>Squibbles</dc:creator>
      <dc:date>2017-07-23T21:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GenMod and ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378563#M91009</link>
      <description>&lt;P&gt;ah good spot! i've been searching for the mistake all evening! Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 22:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GenMod-and-ODS-output/m-p/378563#M91009</guid>
      <dc:creator>Squibbles</dc:creator>
      <dc:date>2017-07-23T22:15:31Z</dc:date>
    </item>
  </channel>
</rss>

