<?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: creating a flag within arrays in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351450#M81796</link>
    <description>&lt;P&gt;Note that you could replace:&lt;/P&gt;
&lt;PRE&gt;c(i) = 0;
        if h(i) &amp;gt; 3 then do; c(i) = 1;
end;&lt;/PRE&gt;
&lt;P&gt;with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;c(i) = (h(i) &amp;gt; 3);&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 20:24:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-19T20:24:50Z</dc:date>
    <item>
      <title>creating a flag within arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351433#M81793</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;I have one array (h) and want to create another array that creates a flag (1) when the value of array h is bigger than 3.&lt;/P&gt;&lt;P&gt;Find below the code that I am using. Why is it not working?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; data curas.curas_aux2;
    set curas.curas_aux;;
     array h(47);
      array c(47);
            do i=1 to i=47;
        c(i) = 0;
        if h(i) &amp;gt; 3 then do; c(i) = 1;
        end;
    end;

    drop i;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Apr 2017 19:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351433#M81793</guid>
      <dc:creator>pablorodriguez1</dc:creator>
      <dc:date>2017-04-19T19:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag within arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351434#M81794</link>
      <description>&lt;P&gt;In the future, when some SAS code is not working, please SHOW YOUR SASLOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;do i=1 to i=47;
&lt;/PRE&gt;
&lt;P&gt;should say&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;do i=1 to 47;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 19:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351434#M81794</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-04-19T19:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag within arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351450#M81796</link>
      <description>&lt;P&gt;Note that you could replace:&lt;/P&gt;
&lt;PRE&gt;c(i) = 0;
        if h(i) &amp;gt; 3 then do; c(i) = 1;
end;&lt;/PRE&gt;
&lt;P&gt;with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;c(i) = (h(i) &amp;gt; 3);&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-a-flag-within-arrays/m-p/351450#M81796</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-19T20:24:50Z</dc:date>
    </item>
  </channel>
</rss>

