<?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: array macro increment in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/array-macro-increment/m-p/180783#M46066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;macro variables aren't available in the data step they're created, unless you use call symget/symput and/or You need a macro loop. Having a macro loop within a data step loop will be messy though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason to not pull the variable names out and put that into a separate array?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 03:40:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-11-21T03:40:21Z</dc:date>
    <item>
      <title>array macro increment</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/array-macro-increment/m-p/180782#M46065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an increment issue while i am checking some code,&lt;/P&gt;&lt;P&gt;i have &amp;amp;trt in macro variable , i want them increment by j , But j value is not incremented in that loop. something is going wrong but unable to figure it out&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;array chk[6] t1-t6;array ct[6] ct1-ct6;&lt;/P&gt;&lt;P&gt;%let j=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 6;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ct&lt;I&gt;=(chk&lt;I&gt;/&amp;amp;&amp;amp;trt&amp;amp;j)*100;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;%let j=%eval(&amp;amp;j+1);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 02:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/array-macro-increment/m-p/180782#M46065</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2014-11-21T02:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: array macro increment</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/array-macro-increment/m-p/180783#M46066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;macro variables aren't available in the data step they're created, unless you use call symget/symput and/or You need a macro loop. Having a macro loop within a data step loop will be messy though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason to not pull the variable names out and put that into a separate array?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 03:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/array-macro-increment/m-p/180783#M46066</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-21T03:40:21Z</dc:date>
    </item>
  </channel>
</rss>

