<?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: Loop-Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745970#M233940</link>
    <description>&lt;P&gt;Over which range of dates do you intend to run the loop?&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jun 2021 07:33:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-06-05T07:33:10Z</dc:date>
    <item>
      <title>Loop-Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745968#M233938</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to do the following task.&lt;/P&gt;
&lt;P&gt;I have one&amp;nbsp; data set with transcations of purcahses in a shop with columns: ID,date,amount. (name of data set is Trans_tbl)&lt;/P&gt;
&lt;P&gt;I have multiple CSV files called tYYYYMMDD with following columns: ID,date,balance&lt;/P&gt;
&lt;P&gt;Please note that for each business day there should be a CSV file.&lt;/P&gt;
&lt;P&gt;The task is :&lt;/P&gt;
&lt;P&gt;1-Create a data set with information of business days&lt;/P&gt;
&lt;P&gt;It will be done by taking distinct dates from&amp;nbsp;Trans_tbl&lt;/P&gt;
&lt;P&gt;2-Create a Loop that do the following"&lt;/P&gt;
&lt;P&gt;A-Select&amp;nbsp;transcations&amp;nbsp; that were done in date X (From data set&amp;nbsp;Trans_tbl)&lt;/P&gt;
&lt;P&gt;B-Import CSV File in date X&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C-Import CSV File in date X-1&lt;/P&gt;
&lt;P&gt;D-Merge(Left Join) data set&amp;nbsp;Trans_tbl with&amp;nbsp;CSV File in date X (To&amp;nbsp; get column of balance in date X)&lt;/P&gt;
&lt;P&gt;E-Merge(Left Join) data set&amp;nbsp;created in step D with&amp;nbsp;CSV File in date X-1 (To&amp;nbsp; get column of balance in date X-1)&lt;/P&gt;
&lt;P&gt;Please note that date X-1 is one business day before date X&amp;nbsp;&lt;/P&gt;
&lt;P&gt;F-Delete data sets :CSV File in date X,CSV File in date X-1 (Because they are very big data sets )&lt;/P&gt;
&lt;P&gt;Any ideas how to do it?&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 07:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745968#M233938</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-06-05T07:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loop-Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745970#M233940</link>
      <description>&lt;P&gt;Over which range of dates do you intend to run the loop?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 07:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745970#M233940</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-05T07:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loop-Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745973#M233942</link>
      <description>&lt;P&gt;Hello, From 01.01.2020 till today&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 08:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745973#M233942</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-06-05T08:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loop-Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745988#M233950</link>
      <description>&lt;P&gt;And how large is trans_tbl?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 13:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/745988#M233950</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-05T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loop-Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/746013#M233960</link>
      <description>&lt;P&gt;Trans_tbl is 200,000 rows&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 16:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/746013#M233960</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-06-05T16:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loop-Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/746021#M233965</link>
      <description>&lt;P&gt;Then you should positively read all csv files in one data step, and load trans_tbl into a hash object for filtering.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 17:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-Question/m-p/746021#M233965</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-05T17:34:59Z</dc:date>
    </item>
  </channel>
</rss>

