<?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: my do loop doesn't work. help me in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393556#M94800</link>
    <description>&lt;P&gt;As I posted in another thread today, splitting data out into multiple datasets is really not a good idea.&lt;/P&gt;
&lt;P&gt;NOw to do what you want, you can't refere to dataset names by using array syntax,so please post an actual example, with test data in the form of a datastep where you would want to use this, as basically all your code below is doing is creating 8 datasets with one row each, which can be achieved by:&lt;/P&gt;
&lt;PRE&gt;data room1 room2...;
run;&lt;/PRE&gt;
&lt;P&gt;As you can see your example makes no sense at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 13:58:25 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-09-06T13:58:25Z</dc:date>
    <item>
      <title>my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393553#M94797</link>
      <description>&lt;P&gt;&lt;BR /&gt;data room1 room2 room3 room4 room5 room6 room7 room8 ;&lt;BR /&gt;do i=1 to 8 ;&lt;BR /&gt;if rooms = i then output room(i) ;&lt;BR /&gt;&lt;BR /&gt;end ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should i do if i want to fix room(i)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 13:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393553#M94797</guid>
      <dc:creator>LeeSeongWoo_</dc:creator>
      <dc:date>2017-09-06T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393555#M94799</link>
      <description>&lt;P&gt;This is not a direct answer to your question, but why do you need eight different data sets? You could keep all the data in one large data set and then do any subsequent processing with a BY statement. It's much simpler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 13:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393555#M94799</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-09-06T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393556#M94800</link>
      <description>&lt;P&gt;As I posted in another thread today, splitting data out into multiple datasets is really not a good idea.&lt;/P&gt;
&lt;P&gt;NOw to do what you want, you can't refere to dataset names by using array syntax,so please post an actual example, with test data in the form of a datastep where you would want to use this, as basically all your code below is doing is creating 8 datasets with one row each, which can be achieved by:&lt;/P&gt;
&lt;PRE&gt;data room1 room2...;
run;&lt;/PRE&gt;
&lt;P&gt;As you can see your example makes no sense at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 13:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393556#M94800</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-06T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393560#M94802</link>
      <description>&lt;P&gt;Thank you for your reply . but the file is too big&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 13:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393560#M94802</guid>
      <dc:creator>LeeSeongWoo_</dc:creator>
      <dc:date>2017-09-06T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393561#M94803</link>
      <description>&lt;P&gt;Do you have an existing data set that contains the variable ROOMS?&amp;nbsp; Right now, there is no data coming in via a SET or INPUT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393561#M94803</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-06T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393563#M94805</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155026"&gt;@LeeSeongWoo_&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your reply . but the file is too big&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Too big to do what? How do you know it is too big? Give us information, describe your actual problem instead of avoiding describing the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393563#M94805</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-09-06T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393565#M94807</link>
      <description>&lt;P&gt;"The file is *-always-* Too Big!"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Macro_CallText" target="_self"&gt;macro calltext&lt;/A&gt; can do this trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see section &lt;A href="http://www.sascommunity.org/wiki/Macro_CallText#Splitting_a_Data_Set" target="_blank"&gt;&lt;SPAN class="tocnumber"&gt;3.3&lt;/SPAN&gt; &lt;SPAN class="toctext"&gt;Splitting a Data Set&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="toctext"&gt;I agree with others: not a good idea to split a data set into subsets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="toctext"&gt;Figure out how to use either a by-statement or where clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="toctext"&gt;Ron Fehd&amp;nbsp; macro function maven&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393565#M94807</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2017-09-06T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: my do loop doesn't work. help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393580#M94810</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155026"&gt;@LeeSeongWoo_&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your reply . but the file is too big&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is too big? You don't even reference a data set to read from to split into something smaller.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-do-loop-doesn-t-work-help-me/m-p/393580#M94810</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-06T14:38:12Z</dc:date>
    </item>
  </channel>
</rss>

