<?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: What is the difference between explicit and implicit array? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412429#M100875</link>
    <description>&lt;P&gt;Not quite right. With EXPLICIT array reference you include the array index value when you reference the array.&amp;nbsp; So you would use references like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do i=1 to dim(x);
  x(i) = x(i) *100;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With IMPLICIT array reference the index value is always in the same variable (default variable is _I_) and if you want to change which element in the array your reference means you change the value of that specific variable.&amp;nbsp; So you do not add anything in the statement that references the variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do _i_=1 to 5 ;
  x = x * 100;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do over x ;
  x = x *100;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Not sure why SAS has dropped the DO OVER from the manuals. Personally I feel it is much clearer when you want to apply the same operation to every element in the array.&amp;nbsp; Especially when the index has no meaning of its own, for instance if the elements in the list are not ordered in any meaningful way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps they feel it is too hard for the compiler to tell which references are array references if you use implicit array references?&amp;nbsp; Or feel it is too confusing for programmers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main thing to know is that for each array you have to stick with just one method of referencing it.&amp;nbsp; You can't use implicit in one statement and explicit in another statement.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 17:05:40 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-11-10T17:05:40Z</dc:date>
    <item>
      <title>What is the difference between explicit and implicit array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412228#M100823</link>
      <description>&lt;P&gt;According my knowledge :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Implicit array : we cannot control it always increment by 1 (do over).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explicit array : we can control it by iteration..&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 06:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412228#M100823</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2017-11-10T06:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between explicit and implicit array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412267#M100827</link>
      <description>&lt;P&gt;There are a few papers out on the subject:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/209-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/209-2010.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/242-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/242-30.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These can describe better than a post.&amp;nbsp; Also the SAS documentation is there to provide instructions.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 10:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412267#M100827</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-10T10:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between explicit and implicit array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412405#M100870</link>
      <description>&lt;P&gt;DO OVER is deprecated like 20 years ago. People still use it, but you should use the explicit version instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS maintains its functionality for backwards compatibility but there's a reason you didn't find it in the documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412405#M100870</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-10T16:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between explicit and implicit array?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412429#M100875</link>
      <description>&lt;P&gt;Not quite right. With EXPLICIT array reference you include the array index value when you reference the array.&amp;nbsp; So you would use references like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do i=1 to dim(x);
  x(i) = x(i) *100;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With IMPLICIT array reference the index value is always in the same variable (default variable is _I_) and if you want to change which element in the array your reference means you change the value of that specific variable.&amp;nbsp; So you do not add anything in the statement that references the variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do _i_=1 to 5 ;
  x = x * 100;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do over x ;
  x = x *100;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Not sure why SAS has dropped the DO OVER from the manuals. Personally I feel it is much clearer when you want to apply the same operation to every element in the array.&amp;nbsp; Especially when the index has no meaning of its own, for instance if the elements in the list are not ordered in any meaningful way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps they feel it is too hard for the compiler to tell which references are array references if you use implicit array references?&amp;nbsp; Or feel it is too confusing for programmers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main thing to know is that for each array you have to stick with just one method of referencing it.&amp;nbsp; You can't use implicit in one statement and explicit in another statement.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 17:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-explicit-and-implicit-array/m-p/412429#M100875</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-10T17:05:40Z</dc:date>
    </item>
  </channel>
</rss>

