<?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 Regarding data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9027#M515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes Sure Art !! He resolved the problem for me with in few minutes !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks FriedEgg !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 13:39:07 GMT</pubDate>
    <dc:creator>raveena</dc:creator>
    <dc:date>2011-09-15T13:39:07Z</dc:date>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9021#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with clam ,line and ind field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. when the whole clamno has the rev =Y&amp;nbsp; only, then need to select Y .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;2.&amp;nbsp; When the clamno has the rev=Y and N , then need to select only 'N'.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;input &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;(CLAM LNNO IND) ($);&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;cards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12345 001 Y&lt;/P&gt;&lt;P&gt;12345 002 Y&lt;/P&gt;&lt;P&gt;12345 003 Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;23456 001 Y&lt;/P&gt;&lt;P&gt;23456 002 N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;34567 001 Y&lt;/P&gt;&lt;P&gt;34567 002 N&lt;/P&gt;&lt;P&gt;34567 003 N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;78968 001 Y&lt;/P&gt;&lt;P&gt;78968 002 Y&lt;/P&gt;&lt;P&gt;78968 003 Y&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output should be:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;12345&amp;nbsp; 001 Y&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;12345&amp;nbsp; 002 Y&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;12345&amp;nbsp; 003 Y&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;23456 002&amp;nbsp; N&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;34567 002 N&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;34567 003 N&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;78968 001 Y&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;78968 002 Y&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;78698 003 Y&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;﻿Thanks in Advance&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9021#M509</guid>
      <dc:creator>raveena</dc:creator>
      <dc:date>2011-09-14T19:37:41Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9022#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input (CLAM LNNO IND) ($);&lt;/P&gt;&lt;P&gt;cards&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;12345 001 Y&lt;/P&gt;&lt;P&gt;12345 002 Y&lt;/P&gt;&lt;P&gt;12345 003 Y&lt;/P&gt;&lt;P&gt;23456 001 Y&lt;/P&gt;&lt;P&gt;23456 002 N&lt;/P&gt;&lt;P&gt;34567 001 Y&lt;/P&gt;&lt;P&gt;34567 002 N&lt;/P&gt;&lt;P&gt;34567 003 N&lt;/P&gt;&lt;P&gt;78968 001 Y&lt;/P&gt;&lt;P&gt;78968 002 Y&lt;/P&gt;&lt;P&gt;78968 003 Y&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have; by clam ind; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; by clam ind;&lt;/P&gt;&lt;P&gt; if first.clam then del=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ind='N' then del+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ind='Y' and del&amp;gt;0 then delete;&lt;/P&gt;&lt;P&gt; drop del;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9022#M510</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-09-14T19:52:25Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9023#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;STRONG&gt;It works well !! Thanks a lot !!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 20:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9023#M511</guid>
      <dc:creator>raveena</dc:creator>
      <dc:date>2011-09-14T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9024#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know&amp;nbsp;&amp;nbsp;&amp;nbsp; when the whole clamno has the rev =N&amp;nbsp; only, What&amp;nbsp; you want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 03:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9024#M512</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-09-15T03:31:55Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9025#M513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Sharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case we need to pick the whole clamno has the rev=N only.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;clamno line rev&lt;/P&gt;&lt;P&gt;123&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;123&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;234&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;234&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&lt;/P&gt;&lt;P&gt;567&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&lt;/P&gt;&lt;P&gt;567&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT SHOULD BE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; 1&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;123&amp;nbsp; 2&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;234&amp;nbsp; 2&amp;nbsp;&amp;nbsp; N&lt;/P&gt;&lt;P&gt;567&amp;nbsp; 1&amp;nbsp; N&lt;/P&gt;&lt;P&gt;567&amp;nbsp; 2&amp;nbsp; N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9025#M513</guid>
      <dc:creator>raveena</dc:creator>
      <dc:date>2011-09-15T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9026#M514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thus, FriedEgg's code will work for that situation as well.&amp;nbsp; You really ought to give him credit for having answered the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9026#M514</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-15T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9027#M515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes Sure Art !! He resolved the problem for me with in few minutes !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks FriedEgg !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9027#M515</guid>
      <dc:creator>raveena</dc:creator>
      <dc:date>2011-09-15T13:39:07Z</dc:date>
    </item>
    <item>
      <title>Regarding data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9028#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure he will appreciate that.&amp;nbsp; But, if you don't indicate that the correct answer has been given, others will still spend time trying to provide you with a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Regarding-data/m-p/9028#M516</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-15T13:42:40Z</dc:date>
    </item>
  </channel>
</rss>

