<?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 Subratrion the obseravtions in one variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Subratrion-the-obseravtions-in-one-variable/m-p/46392#M12363</link>
    <description>Hi&lt;BR /&gt;
i have a data set&lt;BR /&gt;
&lt;BR /&gt;
data x;&lt;BR /&gt;
input sal;&lt;BR /&gt;
cards&lt;BR /&gt;
10&lt;BR /&gt;
9&lt;BR /&gt;
8&lt;BR /&gt;
7&lt;BR /&gt;
6&lt;BR /&gt;
run;&lt;BR /&gt;
 i want the output like this id should substract form the first obs-second obs&lt;BR /&gt;
&lt;BR /&gt;
the output shud be like this&lt;BR /&gt;
&lt;BR /&gt;
sal;&lt;BR /&gt;
10&lt;BR /&gt;
1&lt;BR /&gt;
1&lt;BR /&gt;
1&lt;BR /&gt;
run;</description>
    <pubDate>Tue, 16 Sep 2008 07:48:17 GMT</pubDate>
    <dc:creator>R_Win</dc:creator>
    <dc:date>2008-09-16T07:48:17Z</dc:date>
    <item>
      <title>Subratrion the obseravtions in one variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Subratrion-the-obseravtions-in-one-variable/m-p/46392#M12363</link>
      <description>Hi&lt;BR /&gt;
i have a data set&lt;BR /&gt;
&lt;BR /&gt;
data x;&lt;BR /&gt;
input sal;&lt;BR /&gt;
cards&lt;BR /&gt;
10&lt;BR /&gt;
9&lt;BR /&gt;
8&lt;BR /&gt;
7&lt;BR /&gt;
6&lt;BR /&gt;
run;&lt;BR /&gt;
 i want the output like this id should substract form the first obs-second obs&lt;BR /&gt;
&lt;BR /&gt;
the output shud be like this&lt;BR /&gt;
&lt;BR /&gt;
sal;&lt;BR /&gt;
10&lt;BR /&gt;
1&lt;BR /&gt;
1&lt;BR /&gt;
1&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 16 Sep 2008 07:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Subratrion-the-obseravtions-in-one-variable/m-p/46392#M12363</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2008-09-16T07:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Subratrion the obseravtions in one variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Subratrion-the-obseravtions-in-one-variable/m-p/46393#M12364</link>
      <description>You could use the lag() function or the retain statement to make calculations between different observations.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Tue, 16 Sep 2008 08:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Subratrion-the-obseravtions-in-one-variable/m-p/46393#M12364</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-16T08:05:41Z</dc:date>
    </item>
  </channel>
</rss>

