<?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: Variable creation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197754#M266557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mixed up IF and WHERE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If start_date &amp;lt;= &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;confine_date&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;end_date then match = 'yes' else match = 'no';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 14:19:11 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-07-08T14:19:11Z</dc:date>
    <item>
      <title>Variable creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197753#M266556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a new variable and not quite sure how to tackle it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, this is what I want to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data new_dataset;&lt;/P&gt;&lt;P&gt;Set old_dataset;&lt;/P&gt;&lt;P&gt;If confine_date between start_date and end_date then match = 'yes' else match = 'no';&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the dates aren't fixed. Any help/direction would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 00:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197753#M266556</guid>
      <dc:creator>Kobe004mvp</dc:creator>
      <dc:date>2015-07-08T00:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197754#M266557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mixed up IF and WHERE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If start_date &amp;lt;= &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;confine_date&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;end_date then match = 'yes' else match = 'no';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 14:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197754#M266557</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-08T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197755#M266558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;place a semicolon before else in Xia code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;If start_date &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;confine_date&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;end_date then match = 'yes';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; else match = 'no';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 14:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-creation/m-p/197755#M266558</guid>
      <dc:creator>MadhuKorni</dc:creator>
      <dc:date>2015-07-08T14:26:43Z</dc:date>
    </item>
  </channel>
</rss>

