<?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 issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71009#M15340</link>
    <description>Hi,&lt;BR /&gt;
for example l have the folowing  data:&lt;BR /&gt;
&lt;BR /&gt;
agent x y&lt;BR /&gt;
A       3 5&lt;BR /&gt;
B       2 4&lt;BR /&gt;
C       7 3&lt;BR /&gt;
&lt;BR /&gt;
I want my output be like this&lt;BR /&gt;
&lt;BR /&gt;
agent x y&lt;BR /&gt;
A       3 5&lt;BR /&gt;
A       3 4&lt;BR /&gt;
A       3 3&lt;BR /&gt;
A       3 2&lt;BR /&gt;
A       3 1&lt;BR /&gt;
B       2 4&lt;BR /&gt;
B       2 3&lt;BR /&gt;
B       2 2&lt;BR /&gt;
B       2 1&lt;BR /&gt;
C       7 3&lt;BR /&gt;
C       7 2&lt;BR /&gt;
C       7 1&lt;BR /&gt;
&lt;BR /&gt;
I try to do it without sucess ,can anybody help me?</description>
    <pubDate>Mon, 26 Jan 2009 08:54:31 GMT</pubDate>
    <dc:creator>yonib</dc:creator>
    <dc:date>2009-01-26T08:54:31Z</dc:date>
    <item>
      <title>loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71009#M15340</link>
      <description>Hi,&lt;BR /&gt;
for example l have the folowing  data:&lt;BR /&gt;
&lt;BR /&gt;
agent x y&lt;BR /&gt;
A       3 5&lt;BR /&gt;
B       2 4&lt;BR /&gt;
C       7 3&lt;BR /&gt;
&lt;BR /&gt;
I want my output be like this&lt;BR /&gt;
&lt;BR /&gt;
agent x y&lt;BR /&gt;
A       3 5&lt;BR /&gt;
A       3 4&lt;BR /&gt;
A       3 3&lt;BR /&gt;
A       3 2&lt;BR /&gt;
A       3 1&lt;BR /&gt;
B       2 4&lt;BR /&gt;
B       2 3&lt;BR /&gt;
B       2 2&lt;BR /&gt;
B       2 1&lt;BR /&gt;
C       7 3&lt;BR /&gt;
C       7 2&lt;BR /&gt;
C       7 1&lt;BR /&gt;
&lt;BR /&gt;
I try to do it without sucess ,can anybody help me?</description>
      <pubDate>Mon, 26 Jan 2009 08:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71009#M15340</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2009-01-26T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71010#M15341</link>
      <description>Try this:&lt;BR /&gt;
&lt;BR /&gt;
data agent2(drop=y rename=(i=y));&lt;BR /&gt;
	set agent1;&lt;BR /&gt;
	do i = y to 1 by -1;&lt;BR /&gt;
		output;&lt;BR /&gt;
	end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 26 Jan 2009 11:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71010#M15341</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-01-26T11:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71011#M15342</link>
      <description>Thanks alot linus!!!!&lt;BR /&gt;
I appreciate it very much,</description>
      <pubDate>Mon, 26 Jan 2009 13:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/loop-issue/m-p/71011#M15342</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2009-01-26T13:03:27Z</dc:date>
    </item>
  </channel>
</rss>

