<?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: Macros and Multiple inputs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macros-and-Multiple-inputs/m-p/162606#M31528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want them in the same execution, just line them up in the macro call separated by space (as they would in the proc logic.&lt;/P&gt;&lt;P&gt;If you want separate executions, just call the macro twice and changing the parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 17:24:03 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2013-12-03T17:24:03Z</dc:date>
    <item>
      <title>Macros and Multiple inputs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-and-Multiple-inputs/m-p/162605#M31527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very new to Macros and&amp;nbsp; I have a quick question.. How do I input in two variables in a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO Table2adj (exp=);&lt;/P&gt;&lt;P&gt;PROC SURVEYLOGISTIC DATA =temp nomcar; &lt;/P&gt;&lt;P&gt;STRATA sdmvstra;&lt;/P&gt;&lt;P&gt;CLUSTER sdmvpsu;&lt;/P&gt;&lt;P&gt;WEIGHT MEC10YR;&lt;/P&gt;&lt;P&gt;DOMAIN sel;&lt;/P&gt;&lt;P&gt;CLASS &amp;amp;exp (REF='0') agegp (ref='3.30-39') martial (REF='4.never married') race (REF='1.NH White') edu (REF='HS') employ (REF='0')&lt;/P&gt;&lt;P&gt;income (REF='55+') healthstatus (REF='good')&amp;nbsp; alcohol_abuse (REF='1.Low/No Risk') smoke (REF='0.never smoke')&amp;nbsp; drug (REF='0');&lt;/P&gt;&lt;P&gt;MODEL haveins (event='1')= &amp;amp;exp agegp martial race edu employ income healthstatus Charlston_Score &lt;/P&gt;&lt;P&gt;/clparm vadjust=none; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SURVEYLOGISTIC DATA =temp nomcar; &lt;/P&gt;&lt;P&gt;STRATA sdmvstra;&lt;/P&gt;&lt;P&gt;CLUSTER sdmvpsu;&lt;/P&gt;&lt;P&gt;WEIGHT MEC10YR;&lt;/P&gt;&lt;P&gt;DOMAIN sel;&lt;/P&gt;&lt;P&gt;CLASS &amp;amp;exp (REF='0') agegp (ref='3.30-39') martial (REF='4.never married') race (REF='1.NH White') edu (REF='HS') employ (REF='0')&lt;/P&gt;&lt;P&gt;income (REF='55+') healthstatus (REF='good')&amp;nbsp; alcohol_abuse (REF='1.Low/No Risk') smoke (REF='0.never smoke')&amp;nbsp; drug (REF='0');&lt;/P&gt;&lt;P&gt;MODEL healthvisit (event='1')= &amp;amp;exp agegp martial race edu employ income healthstatus Charlston_Score &lt;/P&gt;&lt;P&gt;/clparm vadjust=none; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MEND Table2adj;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Table2adj(exp=Male);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code above,&amp;nbsp; I inserted the variable Male for &amp;amp;exp.. The two proc surveylogistic are identical with exception of the outcome. So I am wondering is there a way to insert Male and insert healthvisit? This is a simplified example, I have multiple procs to run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 17:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-and-Multiple-inputs/m-p/162605#M31527</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2013-12-03T17:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macros and Multiple inputs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-and-Multiple-inputs/m-p/162606#M31528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want them in the same execution, just line them up in the macro call separated by space (as they would in the proc logic.&lt;/P&gt;&lt;P&gt;If you want separate executions, just call the macro twice and changing the parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 17:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-and-Multiple-inputs/m-p/162606#M31528</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-12-03T17:24:03Z</dc:date>
    </item>
  </channel>
</rss>

