<?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: Do loop in label in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675345#M203456</link>
    <description>&lt;P&gt;A data step do loop will not work here but a macro with a %DO loop could work.&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Fri, 07 Aug 2020 23:45:42 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-08-07T23:45:42Z</dc:date>
    <item>
      <title>Do loop in label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675343#M203454</link>
      <description>&lt;P&gt;I failed to use do loop in the following statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Label&lt;/P&gt;
&lt;P&gt;date_csop1 = 'Date case opened, event1' date_csop2 = 'Date case opened, event2' &lt;BR /&gt;date_csop3 = 'Date case opened, event3' date_csop4 = 'Date case opened, event4' &lt;BR /&gt;date_csop5 = 'Date case opened, event5' date_csop6 = 'Date case opened, event6' &lt;BR /&gt;date_csop7 = 'Date case opened, event7' date_csop8 = 'Date case opened, event8' &lt;BR /&gt;date_csop9 = 'Date case opened, event9' date_csop10 = 'Date case opened, event10'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date_cscls1 = 'Date case closed, event1' date_cscls2 = 'Date case closed, event2' &lt;BR /&gt;date_cscls3 = 'Date case closed, event3' date_cscls4 = 'Date case closed, event4' &lt;BR /&gt;date_cscls5 = 'Date case closed, event5' date_cscls6 = 'Date case closed, event6' &lt;BR /&gt;date_cscls7 = 'Date case closed, event7' date_cscls8 = 'Date case closed, event8' &lt;BR /&gt;date_cscls9 = 'Date case closed, event9' date_cscls10 = 'Date case closed, event10' ;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 23:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675343#M203454</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2020-08-07T23:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop in label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675345#M203456</link>
      <description>&lt;P&gt;A data step do loop will not work here but a macro with a %DO loop could work.&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Aug 2020 23:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675345#M203456</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-07T23:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop in label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675348#M203459</link>
      <description>&lt;P&gt;If this data is generated via a TRANSPOSE you may also want to take advantage of the IDLABEL option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 00:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675348#M203459</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-08T00:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do loop in label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675631#M203585</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;The following statement worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%MACRO DO_LABEL(count);&lt;BR /&gt;%DO Y = 1 %TO &amp;amp;count;&lt;BR /&gt;date_csop&amp;amp;Y = "Date case opened, event&amp;amp;Y"&lt;BR /&gt;date_cscls&amp;amp;Y = "Date case closed, event&amp;amp;Y"&lt;BR /&gt;%END;&lt;BR /&gt;%MEND DO_LABEL;&lt;BR /&gt;LABEL %DO_LABEL(10);&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 15:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-loop-in-label/m-p/675631#M203585</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2020-08-10T15:37:15Z</dc:date>
    </item>
  </channel>
</rss>

