<?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 sas entries manipulation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22050#M4757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;save i have the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Observation&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;x&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;y&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see, column y is not complete. BUT, all rows in column y should take the same value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="border: inherit; width: 1798px;"&gt;&lt;TBODY&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TH align="center" style="border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;Observation&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;x&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;y&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two Questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I want to know how I can do that on SAS.&lt;/P&gt;&lt;P&gt;Next, I need want to keep observations such that x&amp;gt;=y. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Oct 2011 18:52:33 GMT</pubDate>
    <dc:creator>jkf91</dc:creator>
    <dc:date>2011-10-02T18:52:33Z</dc:date>
    <item>
      <title>sas entries manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22050#M4757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;save i have the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Observation&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;x&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;y&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see, column y is not complete. BUT, all rows in column y should take the same value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="border: inherit; width: 1798px;"&gt;&lt;TBODY&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TH align="center" style="border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;Observation&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;x&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;y&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;3&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;TD style="border-color: inherit; border: inherit;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two Questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I want to know how I can do that on SAS.&lt;/P&gt;&lt;P&gt;Next, I need want to keep observations such that x&amp;gt;=y. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 18:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22050#M4757</guid>
      <dc:creator>jkf91</dc:creator>
      <dc:date>2011-10-02T18:52:33Z</dc:date>
    </item>
    <item>
      <title>sas entries manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22051#M4758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=_:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have (rename=(y=_y));&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain y;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_ eq 1 then y=_y;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if x gt y;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 18:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22051#M4758</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-02T18:59:31Z</dc:date>
    </item>
    <item>
      <title>sas entries manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22052#M4759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot! that solved the problem! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just curious though....&lt;/P&gt;&lt;P&gt;what are these two doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop=_: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename=(y=_y)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 21:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22052#M4759</guid>
      <dc:creator>jkf91</dc:creator>
      <dc:date>2011-10-02T21:19:19Z</dc:date>
    </item>
    <item>
      <title>sas entries manipulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22053#M4760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a couple of shortcuts.&amp;nbsp; The rename statement changes the name of variable y, when the file is set, so that it will be seen to be variable _y;&amp;nbsp; I did it that way so that the later missing values of y wouldn't override the desired value from the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The drop statement, then, just uses the semicolon as a wild card.&amp;nbsp; It says, in essence, to drop any variable that starts with an underscore (i.e., variable _y).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The semi colon has lots of under used useage in SAS as stated, nicely, in:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi29/054-29.pdf" style="color: #0000cc;" target="_blank"&gt;http://www2.sas.com/&lt;SPAN style="text-decoration: underline;"&gt; &lt;/SPAN&gt;proceedings/sugi29/054-29.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 21:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-entries-manipulation/m-p/22053#M4760</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-02T21:29:53Z</dc:date>
    </item>
  </channel>
</rss>

