<?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: how to keep the first observation to meet my condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-keep-the-first-observation-to-meet-my-condition/m-p/166325#M263780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I got this! Yay! long hand code, then arrays...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 20:39:45 GMT</pubDate>
    <dc:creator>lola</dc:creator>
    <dc:date>2015-02-12T20:39:45Z</dc:date>
    <item>
      <title>how to keep the first observation to meet my condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-keep-the-first-observation-to-meet-my-condition/m-p/166324#M263779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I improve my programming but still leverage the existing program code from the prgms I received, I attached a new var(s) to similar code, but it is not tight enough, therefore I need to add another condition, which I think should be something along the lines of first.obs. Here is a bit of the code. Please direct me if you know of a keyword for a tutorial. Thank you.[as i learn and improve, I am shameless in sharing my inefficient code].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want the first obs to count using pers07 for those who received earned income in this unit. &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;do i=1 to 16;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if first.affil(i)=1 then do;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if 5&amp;lt;erned(i)&amp;lt;=3000 then do;/* EARNED INCOME */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;pers07+wght;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;end;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;end;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 16:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-keep-the-first-observation-to-meet-my-condition/m-p/166324#M263779</guid>
      <dc:creator>lola</dc:creator>
      <dc:date>2015-02-12T16:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to keep the first observation to meet my condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-keep-the-first-observation-to-meet-my-condition/m-p/166325#M263780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I got this! Yay! long hand code, then arrays...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 20:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-keep-the-first-observation-to-meet-my-condition/m-p/166325#M263780</guid>
      <dc:creator>lola</dc:creator>
      <dc:date>2015-02-12T20:39:45Z</dc:date>
    </item>
  </channel>
</rss>

