<?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: Adding Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428119#M105662</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if variable1=variable2 then newvariable=1; else newvariable=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jan 2018 18:23:23 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-01-16T18:23:23Z</dc:date>
    <item>
      <title>Adding Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428117#M105661</link>
      <description>&lt;P&gt;I have two address variables in my dataset and am trying to create another variable that indicates whether the two addresses match or not (1 indicating a match and 0 indicating not a match). The SAS book I am using appears to only instruct on how to create variables using mathematical functions. Can I create a variable using an if-then statement? How would I code that input?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 18:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428117#M105661</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2018-01-16T18:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428119#M105662</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if variable1=variable2 then newvariable=1; else newvariable=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 18:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428119#M105662</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-16T18:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428120#M105663</link>
      <description>&lt;P&gt;Thanks! I was close.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 18:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-Variables/m-p/428120#M105663</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2018-01-16T18:25:59Z</dc:date>
    </item>
  </channel>
</rss>

