<?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: sas di studio loop issue in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227678#M5507</link>
    <description>&lt;P&gt;I &amp;nbsp;agree with you. But here I have only one macrovariable that is &amp;amp;st &amp;nbsp;which is derived from a control table.my control table has 3 states values say CA, IN, &amp;nbsp;MI. when I use state="&amp;amp;st". intially all records pertaining to 'CA' is read and then are over written when it comes to 'N' and finally overwritten by 'MI'. After looping I am always having records from&amp;nbsp;&lt;SPAN&gt;state="MI". Hope I have explained my problem clearly. Please let me know if something is unclear.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2015 14:56:32 GMT</pubDate>
    <dc:creator>kiranv_</dc:creator>
    <dc:date>2015-09-29T14:56:32Z</dc:date>
    <item>
      <title>sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227670#M5504</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do sas di studio loop. Everything works fine but what is happening it is just recording the results from last macro variable as it is overwritting the values from earlier loop value. Please help me how to avoid this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Kiran&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227670#M5504</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2015-09-29T14:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227671#M5505</link>
      <description>A good practice is to define all macro variables (loop variable included) as local to avoid overwrite it with a different macro.&lt;BR /&gt;%local i j k;</description>
      <pubDate>Tue, 29 Sep 2015 14:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227671#M5505</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2015-09-29T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227677#M5506</link>
      <description>&lt;P&gt;Can you please specify what you re trying to do, and a bit more concrete of the consequences?&lt;/P&gt;&lt;P&gt;What macro variable, where is defined, and how do you intend to use it (all with respect to inner/outer job).&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227677#M5506</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-09-29T14:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227678#M5507</link>
      <description>&lt;P&gt;I &amp;nbsp;agree with you. But here I have only one macrovariable that is &amp;amp;st &amp;nbsp;which is derived from a control table.my control table has 3 states values say CA, IN, &amp;nbsp;MI. when I use state="&amp;amp;st". intially all records pertaining to 'CA' is read and then are over written when it comes to 'N' and finally overwritten by 'MI'. After looping I am always having records from&amp;nbsp;&lt;SPAN&gt;state="MI". Hope I have explained my problem clearly. Please let me know if something is unclear.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227678#M5507</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2015-09-29T14:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227681#M5509</link>
      <description>&lt;P&gt;Hi LinusH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I trying to extract data from a table. I am using a control table to extract data from a big table . My extract condition is&amp;nbsp;&lt;SPAN&gt;state="&amp;amp;st"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Control table has 3 states values say CA, IN, &amp;nbsp;MI. when I use state="&amp;amp;st". intially all records pertaining to 'CA' is read and then are over written when it comes to 'IN' and finally overwritten by 'MI'. After looping I am always having records from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;state="MI" only.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227681#M5509</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2015-09-29T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227685#M5510</link>
      <description>You have to make sure to specify a new dataset each time somehow.  Without know more about how you're doing it, its hard to say.</description>
      <pubDate>Tue, 29 Sep 2015 15:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227685#M5510</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-29T15:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227691#M5511</link>
      <description>&lt;P&gt;Hi Reeza&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a simple DI studio loop job. all I have is a control table and job in which values have to be looped. Please let me know if something is unclear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227691#M5511</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2015-09-29T15:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227711#M5515</link>
      <description>&lt;P&gt;This is not he question that the macro variable gets overwritten, it's the target table...&lt;/P&gt;&lt;P&gt;If you should store the extract results in the&amp;nbsp;same target table, use Append in the Table Loader. Then make sure to delete/truncate this table before entering the loop (if the target table isn't meant to keep history).&lt;/P&gt;&lt;P&gt;But since it sounds like you are querying the same source table, I can't see the&amp;nbsp;benefit of using a loop. Just build an IN() from your control table (store in a macro variable), and use that in your extract.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227711#M5515</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-09-29T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: sas di studio loop issue</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227737#M5517</link>
      <description>&lt;P&gt;i want to thank LinusH for your insight. I had replace option setup and I changed it to append. It worked excellently.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 18:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-di-studio-loop-issue/m-p/227737#M5517</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2015-09-29T18:36:03Z</dc:date>
    </item>
  </channel>
</rss>

