<?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 loop or array? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144531#M261883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wishing you all well. Can I please ask how do I rewrite my sas code below so I don't have to repeat the if-else statements 32 times? :smileyconfused: Thank you very much &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; q71l_type1=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_1=1 or q71l_a_q1_1=1 or q71l_b_q1_1=1 or q71l_c_q1_1=1 or q71l_aa_q1_1=1 or q71l_d_q1_1=1 or&amp;nbsp; q71l_e_q1_1=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_f_q1_1=1 or q71l_g_q1_1=1 or q71l_h_q1_1=1 or q71l_i_q1_1=1 or q71l_j_q1_1=1 or q71l_k_q1_1=1 or q71l_cc_q1_1=1 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_n_q1_1=1 or q71l_o_q1_1=1 or q71l_dd_q1_1=1 or&amp;nbsp; q71l_p_q1_1=1 or q71l_q_q1_1=1 or q71l_r_q1_1=1 or q71l_s_q1_1=1 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_bb_q1_1=1 then q71l_type1=1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_1=. and q71l_a_q1_1=. and q71l_b_q1_1=. and&amp;nbsp; q71l_c_q1_1=. and q71l_aa_q1_1=. and q71l_d_q1_1=. and q71l_e_q1_1=.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_f_q1_1=. and q71l_g_q1_1=. and q71l_h_q1_1=. and q71l_i_q1_1=. and q71l_j_q1_1=. and q71l_k_q1_1=. and q71l_cc_q1_1=.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_n_q1_1=. and q71l_o_q1_1=. and q71l_dd_q1_1=. and&amp;nbsp; q71l_p_q1_1=. and q71l_q_q1_1=. and q71l_r_q1_1=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_s_q1_1=. and q71l_bb_q1_1=. then q71l_type1=.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; up to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; q71l_type32=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_32=1 or q71l_a_q1_32=1 or q71l_b_q1_32=1 or q71l_c_q1_32=1 or q71l_aa_q1_32=1 or q71l_d_q1_32=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_e_q1_32=1 or q71l_f_q1_32=1 or q71l_g_q1_32=1 or q71l_h_q1_32=1 or q71l_i_q1_32=1 or q71l_j_q1_32=1 or q71l_k_q1_32=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_cc_q1_32=1 or&amp;nbsp; q71l_n_q1_32=1 or q71l_o_q1_32=1 or q71l_dd_q1_32=1 or&amp;nbsp; q71l_p_q1_32=1 or q71l_q_q1_32=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_r_q1_32=1 or q71l_s_q1_32=1 or q71l_bb_q1_32=1 then q71l_type32=1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_32=. and q71l_a_q1_32=. and q71l_b_q1_32=. and&amp;nbsp; q71l_c_q1_32=. and q71l_aa_q1_32=. and q71l_d_q1_32=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_e_q1_32=.&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_f_q1_32=. and q71l_g_q1_32=. and q71l_h_q1_32=. and q71l_i_q1_32=. and q71l_j_q1_32=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_k_q1_32=. and q71l_cc_q1_32=.&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_n_q1_32=. and q71l_o_q1_32=. and q71l_dd_q1_32=. and&amp;nbsp; q71l_p_q1_32=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_q_q1_32=. and q71l_r_q1_32=. and&amp;nbsp; q71l_s_q1_32=. and q71l_bb_q1_32=. then q71l_type32=.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 06:16:30 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2014-10-28T06:16:30Z</dc:date>
    <item>
      <title>loop or array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144531#M261883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wishing you all well. Can I please ask how do I rewrite my sas code below so I don't have to repeat the if-else statements 32 times? :smileyconfused: Thank you very much &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; q71l_type1=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_1=1 or q71l_a_q1_1=1 or q71l_b_q1_1=1 or q71l_c_q1_1=1 or q71l_aa_q1_1=1 or q71l_d_q1_1=1 or&amp;nbsp; q71l_e_q1_1=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_f_q1_1=1 or q71l_g_q1_1=1 or q71l_h_q1_1=1 or q71l_i_q1_1=1 or q71l_j_q1_1=1 or q71l_k_q1_1=1 or q71l_cc_q1_1=1 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_n_q1_1=1 or q71l_o_q1_1=1 or q71l_dd_q1_1=1 or&amp;nbsp; q71l_p_q1_1=1 or q71l_q_q1_1=1 or q71l_r_q1_1=1 or q71l_s_q1_1=1 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_bb_q1_1=1 then q71l_type1=1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_1=. and q71l_a_q1_1=. and q71l_b_q1_1=. and&amp;nbsp; q71l_c_q1_1=. and q71l_aa_q1_1=. and q71l_d_q1_1=. and q71l_e_q1_1=.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_f_q1_1=. and q71l_g_q1_1=. and q71l_h_q1_1=. and q71l_i_q1_1=. and q71l_j_q1_1=. and q71l_k_q1_1=. and q71l_cc_q1_1=.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_n_q1_1=. and q71l_o_q1_1=. and q71l_dd_q1_1=. and&amp;nbsp; q71l_p_q1_1=. and q71l_q_q1_1=. and q71l_r_q1_1=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_s_q1_1=. and q71l_bb_q1_1=. then q71l_type1=.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; up to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; q71l_type32=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_32=1 or q71l_a_q1_32=1 or q71l_b_q1_32=1 or q71l_c_q1_32=1 or q71l_aa_q1_32=1 or q71l_d_q1_32=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_e_q1_32=1 or q71l_f_q1_32=1 or q71l_g_q1_32=1 or q71l_h_q1_32=1 or q71l_i_q1_32=1 or q71l_j_q1_32=1 or q71l_k_q1_32=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_cc_q1_32=1 or&amp;nbsp; q71l_n_q1_32=1 or q71l_o_q1_32=1 or q71l_dd_q1_32=1 or&amp;nbsp; q71l_p_q1_32=1 or q71l_q_q1_32=1 or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_r_q1_32=1 or q71l_s_q1_32=1 or q71l_bb_q1_32=1 then q71l_type32=1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if q71l_a_q1_32=. and q71l_a_q1_32=. and q71l_b_q1_32=. and&amp;nbsp; q71l_c_q1_32=. and q71l_aa_q1_32=. and q71l_d_q1_32=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_e_q1_32=.&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_f_q1_32=. and q71l_g_q1_32=. and q71l_h_q1_32=. and q71l_i_q1_32=. and q71l_j_q1_32=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_k_q1_32=. and q71l_cc_q1_32=.&amp;nbsp;&amp;nbsp;&amp;nbsp; and q71l_n_q1_32=. and q71l_o_q1_32=. and q71l_dd_q1_32=. and&amp;nbsp; q71l_p_q1_32=. and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q71l_q_q1_32=. and q71l_r_q1_32=. and&amp;nbsp; q71l_s_q1_32=. and q71l_bb_q1_32=. then q71l_type32=.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 06:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144531#M261883</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2014-10-28T06:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: loop or array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144532#M261884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understood, only the last number of the variables are getting chnged for each of the conditions and statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you can create a macro variabe which substitutes the number and, you can craete the loop with in the macro or you can loop the macro call 32 times to get this contion checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro condi1;&lt;/P&gt;&lt;P&gt;%local xyz;&lt;/P&gt;&lt;P&gt;%do xyz = 1 to 32;&lt;/P&gt;&lt;P&gt;q71l_type&amp;amp;xyz = 0;&lt;/P&gt;&lt;P&gt;if q71l_a_q1_&amp;amp;xyz =1 or ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend condi1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can call the macro condi1 in your peogram where you need to check this condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 06:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144532#M261884</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2014-10-28T06:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: loop or array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144533#M261885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When this is Boolean logic with a 3 value logic (0 1 en .) or just binary ( 0 1) there are smarter ways to code.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0zxive1z1ctqin12w06c85jfigd.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0zxive1z1ctqin12w06c85jfigd.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt; sum&amp;nbsp; note the option to use a variable list.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p0nw8trwk5ooesn1o8zrtd5c6j1t.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p0nw8trwk5ooesn1o8zrtd5c6j1t.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt; nmiss cmiss&lt;BR /&gt;That is the inner test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than you are going to do that 32 times exactly the same way.&lt;/P&gt;&lt;P&gt;A macro is adding complexity to coding in segregating the parts. An array on the definition and looping.&lt;/P&gt;&lt;P&gt;Both are requiring the inner block is equal. I am not seeing that equality on the inner block. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 08:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144533#M261885</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-28T08:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: loop or array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144534#M261886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not seeing the naming convention for the variables but arrays are usually a better solution.&lt;/P&gt;&lt;P&gt;The logic appears to be if any is 1, set indicator to 1, if all are missing set to missing otherwise set to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a naming convention, you may be able to avoid listing out all the variables manually. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array qa(*) list all variables here;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if nmiss(of qa(*)) = dim(qa) then &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;q71l_type1&lt;/SPAN&gt;=.&lt;/P&gt;&lt;P&gt;else if max(of qa(*))=1 then &lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;q71l_type1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else if max(of qa(*))=1 then &lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;q71l_type1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 18:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144534#M261886</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-28T18:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: loop or array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144535#M261887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your valuable input &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 04:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144535#M261887</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2014-11-04T04:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: loop or array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144536#M261888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One other suggestion, apart from arrays and lots of code, is to normalize your data, i.e.&lt;/P&gt;&lt;P&gt;Question&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response&lt;/P&gt;&lt;P&gt;q71l_a_q1_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;q71l_b_q1_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then its pretty simple to check existence of conditions.&amp;nbsp; I.e:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table WANT as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct "1" as RESULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAVE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESPONSE=1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-or-array/m-p/144536#M261888</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-04T09:20:01Z</dc:date>
    </item>
  </channel>
</rss>

