<?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 Using %local in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-local/m-p/77699#M16849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create tables for each of my demographic variables along with whether a person is a case or a control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%local varlist;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let varlist=age race sex etc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=my_data;&lt;/P&gt;&lt;P&gt;tables &amp;amp;varlist;&lt;/P&gt;&lt;P&gt;tables case*&amp;amp;varlist/chisq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case indicates whether someone is a case or a control. The individual tables printed fine, and a table showing age by case/control status, but then the program stopped incorporating case/control status and just reprinted the overall frequencies for race, sex, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 14:59:52 GMT</pubDate>
    <dc:creator>Walternate</dc:creator>
    <dc:date>2013-01-17T14:59:52Z</dc:date>
    <item>
      <title>Using %local</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-local/m-p/77699#M16849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create tables for each of my demographic variables along with whether a person is a case or a control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%local varlist;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let varlist=age race sex etc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=my_data;&lt;/P&gt;&lt;P&gt;tables &amp;amp;varlist;&lt;/P&gt;&lt;P&gt;tables case*&amp;amp;varlist/chisq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case indicates whether someone is a case or a control. The individual tables printed fine, and a table showing age by case/control status, but then the program stopped incorporating case/control status and just reprinted the overall frequencies for race, sex, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 14:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-local/m-p/77699#M16849</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2013-01-17T14:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using %local</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-local/m-p/77700#M16850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use the composite (my term) table syntax with a group of variables they need to be in ().&lt;/P&gt;&lt;P&gt;Your second table statement should be :&lt;/P&gt;&lt;P&gt;tables case * (&amp;amp;varlist) / chisq;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 15:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-local/m-p/77700#M16850</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-01-17T15:27:06Z</dc:date>
    </item>
  </channel>
</rss>

