<?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: While loop, right? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536010#M147241</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
array t(*) ieorres_incl01-ieorres_incl09;
length Inclusion $3;
if 'NO' in t then Inclusion='NO';
else Inclusion='YES';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Feb 2019 19:49:08 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-02-15T19:49:08Z</dc:date>
    <item>
      <title>While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536002#M147234</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do a while loop to scan the variables 01 - 09 and if all of them is 'yes' then the last column will be populated as 'yes', otherwise if ther eis one 'no' then&amp;nbsp;the last column will be populated as 'no'&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;usubjid&lt;/TD&gt;&lt;TD&gt;ieorres_incl01&lt;/TD&gt;&lt;TD&gt;ieorres_incl02&lt;/TD&gt;&lt;TD&gt;ieorres_incl03&lt;/TD&gt;&lt;TD&gt;ieorres_incl04&lt;/TD&gt;&lt;TD&gt;ieorres_incl05&lt;/TD&gt;&lt;TD&gt;ieorres_incl06&lt;/TD&gt;&lt;TD&gt;ieorres_incl07&lt;/TD&gt;&lt;TD&gt;ieorres_incl08&lt;/TD&gt;&lt;TD&gt;ieorres_incl09&lt;/TD&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/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1005&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;yes&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536002#M147234</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-02-15T19:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536008#M147237</link>
      <description>&lt;P&gt;No loop needed. Use the WHICHC function.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0jfvenvsqk24vn1q2ypospoq9ij.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0jfvenvsqk24vn1q2ypospoq9ij.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example at that link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536008#M147237</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-15T19:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536010#M147241</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
array t(*) ieorres_incl01-ieorres_incl09;
length Inclusion $3;
if 'NO' in t then Inclusion='NO';
else Inclusion='YES';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536010#M147241</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-15T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536015#M147244</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;All roads lead to Rome!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Power of SAS, thank you both!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/536015#M147244</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-02-15T19:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/537184#M147682</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a new situation where I need to the same to populate "Yes"/"No" in the last column based on the Yes/No from the previous column as above, but the variable names are quite random and how can I define trhe array in this case&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;array&lt;/SPAN&gt; t&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; ieorres_incl01&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;ieorres_incl09&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Subject ID&lt;/TD&gt;&lt;TD&gt;Consent&lt;BR /&gt;Obtained&lt;/TD&gt;&lt;TD&gt;Inclusion&lt;BR /&gt;Met&lt;/TD&gt;&lt;TD&gt;Exclusion&lt;BR /&gt;Not Met&lt;/TD&gt;&lt;TD&gt;Dose&lt;BR /&gt;Volume&lt;BR /&gt;Compliance&lt;/TD&gt;&lt;TD&gt;Correct&lt;BR /&gt;Vial&lt;BR /&gt;Received&lt;/TD&gt;&lt;TD&gt;Dosing&lt;BR /&gt;Window&lt;/TD&gt;&lt;TD&gt;Sample&lt;BR /&gt;Obtained&lt;/TD&gt;&lt;TD&gt;Flagged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/537184#M147682</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-02-20T20:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/537186#M147683</link>
      <description>&lt;P&gt;How about using double dash var list as long as they follow the order that your sample suggests from left to right&lt;/P&gt;
&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;array&lt;/SPAN&gt; t&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;Consent&lt;/SPAN&gt;&lt;SPAN&gt;Obtained&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;--sample&lt;SPAN&gt;Obtained&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/537186#M147683</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-20T20:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: While loop, right?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/537189#M147685</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;it just worked pergect!&lt;/P&gt;&lt;P&gt;Thank you SO VERY MUCH!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/While-loop-right/m-p/537189#M147685</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-02-20T20:40:56Z</dc:date>
    </item>
  </channel>
</rss>

