<?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: Operations calling values of a variable in specific rows ... in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9805#M783</link>
    <description>Thanks a lot Peter, the LAG() function solved my doubt.&lt;BR /&gt;
&lt;BR /&gt;
Asier.</description>
    <pubDate>Tue, 15 Feb 2011 16:20:39 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-02-15T16:20:39Z</dc:date>
    <item>
      <title>Operations calling values of a variable in specific rows ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9803#M781</link>
      <description>Hi !&lt;BR /&gt;
How could I perform operations with the value of a variable in a specific row ? could be the previous row (n-1.variable), the next one (n+1.variable), the first (first.variable), the last (last.variable) or the value from a variable in a specific row number (rowx.variable).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I am trying to perform operations like:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if n.variable ne n-1.variable then y=1;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Asier</description>
      <pubDate>Mon, 14 Feb 2011 23:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9803#M781</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-14T23:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Operations calling values of a variable in specific rows ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9804#M782</link>
      <description>have you looked at the LAG() function?</description>
      <pubDate>Mon, 14 Feb 2011 23:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9804#M782</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-14T23:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Operations calling values of a variable in specific rows ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9805#M783</link>
      <description>Thanks a lot Peter, the LAG() function solved my doubt.&lt;BR /&gt;
&lt;BR /&gt;
Asier.</description>
      <pubDate>Tue, 15 Feb 2011 16:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Operations-calling-values-of-a-variable-in-specific-rows/m-p/9805#M783</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-15T16:20:39Z</dc:date>
    </item>
  </channel>
</rss>

