<?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: different variables for the if statement same then. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266858#M52687</link>
    <description>&lt;P&gt;great thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 20:46:17 GMT</pubDate>
    <dc:creator>sasiscool</dc:creator>
    <dc:date>2016-04-27T20:46:17Z</dc:date>
    <item>
      <title>different variables for the if statement same then.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266761#M52642</link>
      <description>&lt;P&gt;I have multiple variables that follow in sequential order ques5-ques20. Each of these varibles have some entries with a "*" that I want to change to a blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than write out a ton of if-or-then. (if ques5="*" then ques5=" ")....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i achieve this more efficiently with a do loop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266761#M52642</guid>
      <dc:creator>sasiscool</dc:creator>
      <dc:date>2016-04-27T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: different variables for the if statement same then.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266765#M52644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39872"&gt;@sasiscool﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
array q ques5-ques20;
do _n_=1 to dim(q);
  if strip(q[_n_])='*' then q[_n_]=' ';
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266765#M52644</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-27T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: different variables for the if statement same then.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266858#M52687</link>
      <description>&lt;P&gt;great thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 20:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/266858#M52687</guid>
      <dc:creator>sasiscool</dc:creator>
      <dc:date>2016-04-27T20:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: different variables for the if statement same then.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/267065#M52734</link>
      <description>&lt;P&gt;Please mark the appropriate solution as accepted.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 17:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-variables-for-the-if-statement-same-then/m-p/267065#M52734</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-28T17:44:58Z</dc:date>
    </item>
  </channel>
</rss>

