<?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 day on day code run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319850#M70358</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have data where todays closing becomes next days opening after calculations in Base SAS Code I have written and I have data from Jan2016 to Jul2016 so what is happening here is when I run one time data for 1st jan matches when I run second time data for 2nd jan matches and so on but how to cut down this repeting process short so that I can get all the matching values in one go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2016 09:26:03 GMT</pubDate>
    <dc:creator>nishukhawale</dc:creator>
    <dc:date>2016-12-19T09:26:03Z</dc:date>
    <item>
      <title>day on day code run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319850#M70358</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have data where todays closing becomes next days opening after calculations in Base SAS Code I have written and I have data from Jan2016 to Jul2016 so what is happening here is when I run one time data for 1st jan matches when I run second time data for 2nd jan matches and so on but how to cut down this repeting process short so that I can get all the matching values in one go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 09:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319850#M70358</guid>
      <dc:creator>nishukhawale</dc:creator>
      <dc:date>2016-12-19T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: day on day code run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319852#M70359</link>
      <description>&lt;P&gt;Please supply&lt;/P&gt;
&lt;P&gt;- example data (&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;data step&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;- the code you already have&lt;/P&gt;
&lt;P&gt;- the intended result&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 09:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319852#M70359</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-19T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: day on day code run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319853#M70360</link>
      <description>&lt;P&gt;Please give a sample example of your data and the output you want.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 09:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319853#M70360</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-19T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: day on day code run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319857#M70361</link>
      <description>&lt;P&gt;Please provide the dataset for further reference and to drill down on the question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vamsi.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 10:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319857#M70361</guid>
      <dc:creator>SBRVamsi</dc:creator>
      <dc:date>2016-12-19T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: day on day code run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319888#M70367</link>
      <description>&lt;P&gt;We're all guessing, but this might be what you want: &amp;nbsp;compute today's opening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, the opening for the first day can't be computed. &amp;nbsp;But here's one approach to get as much as possible from the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;by company date;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by company;&lt;/P&gt;
&lt;P&gt;opening = lag(closing);&lt;/P&gt;
&lt;P&gt;if first.company then opening=.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 12:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/day-on-day-code-run/m-p/319888#M70367</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-12-19T12:18:14Z</dc:date>
    </item>
  </channel>
</rss>

