<?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: selecting certain observations using the where or if statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623998#M77347</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if find(description,'procedure','i')&amp;gt;0 then output;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Would you please be kind enough to help us out and fix the Subject line of your original post to say "observations" instead of "variables"?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 20:15:38 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-02-11T20:15:38Z</dc:date>
    <item>
      <title>selecting certain variables using the where or if statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623994#M77345</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if it is possible to use the where or if statements to select certain observations that have a lot of text in them. For instance consider the following example table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Description&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count&amp;nbsp;&lt;/P&gt;
&lt;P&gt;17-Hydroxypregnenolone (Hormone) Level&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&lt;/P&gt;
&lt;P&gt;3d Radiographic Procedure&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 62&lt;/P&gt;
&lt;P&gt;3d Radiographic Procedure With Computerized Image Postprocessing&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31&lt;/P&gt;
&lt;P&gt;Abdominal Removal Of Uterus Cervix And Lymph Nodes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 28&lt;/P&gt;
&lt;P&gt;Procedure for Abdominal Pain&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if I only wanted to keep the observations that contained "procedure" somewhere in the title, how would I do that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623994#M77345</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-02-11T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: selecting certain variables using the where or if statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623996#M77346</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Description $ 1-66 Count;
datalines;
17-Hydroxypregnenolone (Hormone) Level                            11
3d Radiographic Procedure                                         62
3d Radiographic Procedure With Computerized Image Postprocessing  31
Abdominal Removal Of Uterus Cervix And Lymph Nodes                28
Procedure for Abdominal Pain                                      57
;

data want;
   set have;
   where find(Description, 'procedure', 'i');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623996#M77346</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-11T20:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: selecting certain observations using the where or if statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623998#M77347</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if find(description,'procedure','i')&amp;gt;0 then output;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Would you please be kind enough to help us out and fix the Subject line of your original post to say "observations" instead of "variables"?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/623998#M77347</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-11T20:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: selecting certain variables using the where or if statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/624025#M77349</link>
      <description>&lt;P&gt;And for "Lots of text" if defined as "more than 30 characters":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want2;
   set have;
   where length(Description) &amp;gt; 30;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2020 21:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/selecting-certain-variables-using-the-where-or-if-statement/m-p/624025#M77349</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-11T21:20:41Z</dc:date>
    </item>
  </channel>
</rss>

