<?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: date before weekend od holiday in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635384#M188651</link>
    <description>&lt;P&gt;I guess what you want to do is something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  merge rates table2;
  by date;
  rate=coalesce(rate,prev_rate);
  output;
  prev_rate=rate;
  retain prev_rate;
  drop prev_rate;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Mar 2020 16:40:39 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2020-03-27T16:40:39Z</dc:date>
    <item>
      <title>date before weekend od holiday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635292#M188621</link>
      <description>&lt;P&gt;I have a currency rates table with any dates. On the other site I've a table with any dates, weekdays, Weekend or Holiday. Now I join this table with currency rates by date. But for Weekend/Holiday I didn't got any results, so I would like to take the day before Weekend/Holiday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you&amp;nbsp;any ideas...&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635292#M188621</guid>
      <dc:creator>Sven4IBM</dc:creator>
      <dc:date>2020-03-27T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: date before weekend od holiday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635294#M188622</link>
      <description>&lt;P&gt;Can you post some example obs? Maybe lag/retain can be used.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 12:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635294#M188622</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-03-27T12:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: date before weekend od holiday</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635384#M188651</link>
      <description>&lt;P&gt;I guess what you want to do is something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  merge rates table2;
  by date;
  rate=coalesce(rate,prev_rate);
  output;
  prev_rate=rate;
  retain prev_rate;
  drop prev_rate;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 16:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-before-weekend-od-holiday/m-p/635384#M188651</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-03-27T16:40:39Z</dc:date>
    </item>
  </channel>
</rss>

