<?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: Opposite of Lag function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684546#M207465</link>
    <description>&lt;P&gt;The "opposite of LAG" function is often called a LEAD function. It is not natively implemented in the SAS DATA step, but you can perform some tricks to emulate the behavior. These notes should get you started in the right direction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/36/199.html" target="_self"&gt;Create the equivalent of a LEAD function by using the POINT= option in the SET statement&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/24/666.html" target="_self"&gt;Creating the equivalent of the LEAD function by merging variables&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/11/01/hopping-for-the-best-calculations-across-sas-dataset-observations/" target="_self"&gt;The %HOP macro&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Personally, I like the "merging variables" options for simple applications.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 10:40:16 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-09-17T10:40:16Z</dc:date>
    <item>
      <title>Opposite of Lag function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684542#M207461</link>
      <description>Hello Experts,&lt;BR /&gt;Do you know please if there is the opposite of  LAG function?&lt;BR /&gt;I need to create a new column with the next value in my column.&lt;BR /&gt;Thank you very much!&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Sep 2020 10:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684542#M207461</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-09-17T10:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Opposite of Lag function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684546#M207465</link>
      <description>&lt;P&gt;The "opposite of LAG" function is often called a LEAD function. It is not natively implemented in the SAS DATA step, but you can perform some tricks to emulate the behavior. These notes should get you started in the right direction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/36/199.html" target="_self"&gt;Create the equivalent of a LEAD function by using the POINT= option in the SET statement&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/24/666.html" target="_self"&gt;Creating the equivalent of the LEAD function by merging variables&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/11/01/hopping-for-the-best-calculations-across-sas-dataset-observations/" target="_self"&gt;The %HOP macro&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Personally, I like the "merging variables" options for simple applications.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 10:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684546#M207465</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-17T10:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Opposite of Lag function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684547#M207466</link>
      <description>Thank you very much!</description>
      <pubDate>Thu, 17 Sep 2020 11:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opposite-of-Lag-function/m-p/684547#M207466</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-09-17T11:12:42Z</dc:date>
    </item>
  </channel>
</rss>

