<?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 Conditionally run proc mixed within macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-run-proc-mixed-within-macro/m-p/732976#M228405</link>
    <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Dear All,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;Could you please to point out what have I done wrong given the following errors?&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thanking you in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Required operator not found in expression: &amp;amp;sub eq
ERROR: The macro REPEAT will stop executing.

ods output LSMeans=LSM_all_&amp;amp;param
SliceDiffs=SDiff_all_&amp;amp;param;
proc mixed data=inds;
%if &amp;amp;sub ne %then by &amp;amp;byvar;
where PARNAM1C="&amp;amp;param" and 1&amp;lt;=vis&amp;lt;=13;
class id resp tx sex vis / ref=first;
model chg=resp tx sex resp*vis / s ddfm=kenwardroger;
lsmeans resp*vis / cl;
repeated vis / subject=id type=&amp;amp;cov;
slice resp*VIS / sliceby=vis pdiff cl;
run;
ods output close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Apr 2021 09:53:19 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2021-04-12T09:53:19Z</dc:date>
    <item>
      <title>Conditionally run proc mixed within macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-run-proc-mixed-within-macro/m-p/732976#M228405</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Dear All,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;Could you please to point out what have I done wrong given the following errors?&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thanking you in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Required operator not found in expression: &amp;amp;sub eq
ERROR: The macro REPEAT will stop executing.

ods output LSMeans=LSM_all_&amp;amp;param
SliceDiffs=SDiff_all_&amp;amp;param;
proc mixed data=inds;
%if &amp;amp;sub ne %then by &amp;amp;byvar;
where PARNAM1C="&amp;amp;param" and 1&amp;lt;=vis&amp;lt;=13;
class id resp tx sex vis / ref=first;
model chg=resp tx sex resp*vis / s ddfm=kenwardroger;
lsmeans resp*vis / cl;
repeated vis / subject=id type=&amp;amp;cov;
slice resp*VIS / sliceby=vis pdiff cl;
run;
ods output close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Apr 2021 09:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-run-proc-mixed-within-macro/m-p/732976#M228405</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2021-04-12T09:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally run proc mixed within macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-run-proc-mixed-within-macro/m-p/732987#M228407</link>
      <description>&lt;P&gt;Macro variable &amp;amp;SUB does not exist. You also need two semi-colons on this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;sub ne %then by &amp;amp;byvar;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One ends the %IF and one ends the BY&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, if you hare having problems with MACRO code, please use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbogen mlogic;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;at the start of your program.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;From now on, do not show us parts of the log disconnected from the code. Show us the LOG from PROC MIXED (or whatever PROC you are using) including the code and ERRORs/WARNINGs in the order they appear in the LOG, without modification, and without you selecting certain parts of the log of PROC MIXED (or whatever PROC you are using) to show us and not showing us other parts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 12:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-run-proc-mixed-within-macro/m-p/732987#M228407</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-12T12:17:39Z</dc:date>
    </item>
  </channel>
</rss>

