<?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 saving and opening multiple data sets within a loop in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/saving-and-opening-multiple-data-sets-within-a-loop/m-p/7697#M154</link>
    <description>i use the proc iml to do simulation study i generate  1000 data sets using loop and i want to know how to assign them names and how to save and  retrive them wihin a loop.</description>
    <pubDate>Wed, 26 Mar 2008 09:17:40 GMT</pubDate>
    <dc:creator>Doaa</dc:creator>
    <dc:date>2008-03-26T09:17:40Z</dc:date>
    <item>
      <title>saving and opening multiple data sets within a loop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/saving-and-opening-multiple-data-sets-within-a-loop/m-p/7697#M154</link>
      <description>i use the proc iml to do simulation study i generate  1000 data sets using loop and i want to know how to assign them names and how to save and  retrive them wihin a loop.</description>
      <pubDate>Wed, 26 Mar 2008 09:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/saving-and-opening-multiple-data-sets-within-a-loop/m-p/7697#M154</guid>
      <dc:creator>Doaa</dc:creator>
      <dc:date>2008-03-26T09:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: saving and opening multiple data sets within a loop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/saving-and-opening-multiple-data-sets-within-a-loop/m-p/7698#M155</link>
      <description>Hi,&lt;BR /&gt;
   The following program might help u&lt;BR /&gt;
%macro create(howmany);&lt;BR /&gt;
   %do i=1 %to &amp;amp;howmany;&lt;BR /&gt;
      data month&amp;amp;i;&lt;BR /&gt;
         ----------------&lt;BR /&gt;
          --------------&lt;BR /&gt;
            -------------&lt;BR /&gt;
      run;&lt;BR /&gt;
   %end;&lt;BR /&gt;
%mend create;&lt;BR /&gt;
&lt;BR /&gt;
%create(3)&lt;BR /&gt;
When you execute the macro CREATE, it generates these statements: &lt;BR /&gt;
DATA MONTH1;&lt;BR /&gt;
   INFILE IN1;&lt;BR /&gt;
   INPUT PRODUCT COST DATE;&lt;BR /&gt;
RUN;&lt;BR /&gt;
DATA MONTH2;&lt;BR /&gt;
   INFILE IN2;&lt;BR /&gt;
   INPUT PRODUCT COST DATE;&lt;BR /&gt;
RUN;&lt;BR /&gt;
DATA MONTH3;&lt;BR /&gt;
   INFILE IN3;&lt;BR /&gt;
   INPUT PRODUCT COST DATE;&lt;BR /&gt;
RUN;</description>
      <pubDate>Mon, 31 Mar 2008 07:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/saving-and-opening-multiple-data-sets-within-a-loop/m-p/7698#M155</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-31T07:00:07Z</dc:date>
    </item>
  </channel>
</rss>

