<?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: Dummy variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796634#M255656</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I want my output to be matched result for the two dummy variables. I will like to remove the extra numbers from each row. This is want I want my output to looks like.&lt;/P&gt;&lt;P&gt;Var1&amp;nbsp; Var2&lt;/P&gt;&lt;P&gt;J124 J124&lt;/P&gt;&lt;P&gt;C23&amp;nbsp; C23&lt;/P&gt;&lt;P&gt;R86&amp;nbsp; R86&lt;/P&gt;&lt;P&gt;E89&amp;nbsp; E89&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 16:59:44 GMT</pubDate>
    <dc:creator>CathyVI</dc:creator>
    <dc:date>2022-02-16T16:59:44Z</dc:date>
    <item>
      <title>Dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796628#M255651</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have dummy variable Var1 and Var2.&lt;BR /&gt;How will I remove the 2 in R862 so as to have R86 and R86 in both Var1 and Var2.&lt;BR /&gt;I will like to do this for all the unmatched e.g. C23 and C2357, E89 and E8996 etc. I have over 10,000 encounters my dataset with this issue.&lt;/P&gt;&lt;P&gt;Fname&amp;nbsp; Lname&amp;nbsp; Firstname&amp;nbsp; Lastname&amp;nbsp; Var1&amp;nbsp; &amp;nbsp;Var2&lt;BR /&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp;Doe&amp;nbsp; &amp;nbsp; &amp;nbsp; John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Do&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;J124&amp;nbsp; &amp;nbsp;J124&lt;BR /&gt;Pat&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cut&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Patt&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cot jr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C23&amp;nbsp; &amp;nbsp; C2357&lt;BR /&gt;Riley&amp;nbsp; &amp;nbsp; &amp;nbsp;Jo Sr&amp;nbsp; &amp;nbsp; &amp;nbsp;Rilly&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Joo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; R862&amp;nbsp; R86&lt;BR /&gt;Ellen&amp;nbsp; &amp;nbsp; &amp;nbsp;Mee&amp;nbsp; &amp;nbsp; &amp;nbsp; Elen&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Meey Sr.&amp;nbsp; &amp;nbsp; E89&amp;nbsp; &amp;nbsp; E8996&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796628#M255651</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-02-16T16:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796632#M255654</link>
      <description>Please provide more details. &lt;BR /&gt;For starters, if that was your input what do you want as output. &lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796632#M255654</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-16T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796634#M255656</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I want my output to be matched result for the two dummy variables. I will like to remove the extra numbers from each row. This is want I want my output to looks like.&lt;/P&gt;&lt;P&gt;Var1&amp;nbsp; Var2&lt;/P&gt;&lt;P&gt;J124 J124&lt;/P&gt;&lt;P&gt;C23&amp;nbsp; C23&lt;/P&gt;&lt;P&gt;R86&amp;nbsp; R86&lt;/P&gt;&lt;P&gt;E89&amp;nbsp; E89&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796634#M255656</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-02-16T16:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796635#M255657</link>
      <description>&lt;P&gt;Check the lengths of each variable and whichever is the smaller, use that and assign it to both variables.&lt;/P&gt;
&lt;P&gt;Something like this perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if length(var1) &amp;lt; length(var2) then var2=var1;
else var1=var2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 17:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dummy-variable/m-p/796635#M255657</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-16T17:05:49Z</dc:date>
    </item>
  </channel>
</rss>

