<?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: Weekly Data Read in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477189#M122854</link>
    <description>&lt;P&gt;Run a do loop from today() - 8 to today() - 2. Format these dates with yymmddn8. and use them to build a string with the dataset names (separated by blanks). After the loop, use call symput to create a macro variable. Use that macro variable in the set statement of a data step to concatenate all datasets.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 18:11:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-11T18:11:10Z</dc:date>
    <item>
      <title>Weekly Data Read</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477158#M122838</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've started some basic coding with SAS and need help from the group on the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Every Monday, I've to run a SAS script to read SAS data set for the last week (Sunday to Saturday) and append to a master table, XYZ. Every Monday, last week's data needs to be extracted and appended to the master table XYZ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. The dataset is stored as sas dataset with daily time stamp (&lt;/STRONG&gt;&lt;STRONG&gt;so that I know which data row belongs to what date). Example - Sales20180701.sas7bdat, Sales20180702.sas7bdat and so on&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I read the dataset every Monday for the last week and then append it to a Master table, XYZ with a datestamp?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I apologize if the question is very basic. Thanks.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 17:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477158#M122838</guid>
      <dc:creator>SteelersPitts</dc:creator>
      <dc:date>2018-07-11T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Data Read</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477189#M122854</link>
      <description>&lt;P&gt;Run a do loop from today() - 8 to today() - 2. Format these dates with yymmddn8. and use them to build a string with the dataset names (separated by blanks). After the loop, use call symput to create a macro variable. Use that macro variable in the set statement of a data step to concatenate all datasets.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 18:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477189#M122854</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-11T18:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Data Read</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477480#M122978</link>
      <description>&lt;P&gt;Thank you. I will let you know my coding result. Appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weekly-Data-Read/m-p/477480#M122978</guid>
      <dc:creator>SteelersPitts</dc:creator>
      <dc:date>2018-07-12T13:58:03Z</dc:date>
    </item>
  </channel>
</rss>

