<?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 survey genmode macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-survey-genmode-macro/m-p/681820#M206293</link>
    <description>&lt;P&gt;It may be as simple as you didn't actually have SAS run the macro ... this goes after the code you show&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%printit&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(Although there is no need of a %PRINTIT macro, you could just run %SURVEYGENMOD outside of the %PRINTIT macro)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, if that's not it: A brief comment — saying the code doesn't run never gives us any useful information. Show us the log, with nothing chopped out. Click on the &amp;lt;/&amp;gt; icon and paste the log, as text, into the window that appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For macros, you need to run the command OPTIONS MPRINT; before your run the macro.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Sep 2020 16:47:36 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-09-05T16:47:36Z</dc:date>
    <item>
      <title>proc survey genmode macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-survey-genmode-macro/m-p/681799#M206279</link>
      <description>&lt;P&gt;Hello programmers,&lt;/P&gt;&lt;P&gt;I wanted to run an analysis taking into account complex sampling. Can anyone help me check my codes? They did not run. New to macros. It didn't give me any errors in the log.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro Printit;
%surveygenmod(data=adult_asthma3, y=urg_tim,x=MDD mold age smoker income smoke_inside educate,
dist=binomial, link=logit, weight=LLcpwt_F, strata=_ststr, cluster=_psu, fpc=, scale=deviance, intercept=y,
vadjust=n);
run;
%MEND printit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Sep 2020 11:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-survey-genmode-macro/m-p/681799#M206279</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-09-05T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc survey genmode macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-survey-genmode-macro/m-p/681820#M206293</link>
      <description>&lt;P&gt;It may be as simple as you didn't actually have SAS run the macro ... this goes after the code you show&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%printit&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(Although there is no need of a %PRINTIT macro, you could just run %SURVEYGENMOD outside of the %PRINTIT macro)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, if that's not it: A brief comment — saying the code doesn't run never gives us any useful information. Show us the log, with nothing chopped out. Click on the &amp;lt;/&amp;gt; icon and paste the log, as text, into the window that appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For macros, you need to run the command OPTIONS MPRINT; before your run the macro.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 16:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-survey-genmode-macro/m-p/681820#M206293</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-05T16:47:36Z</dc:date>
    </item>
  </channel>
</rss>

