<?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 scan for a specific work or number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874946#M345707</link>
    <description>Wow that is fun. Awesome! Thanks!</description>
    <pubDate>Wed, 10 May 2023 13:49:22 GMT</pubDate>
    <dc:creator>binhle50</dc:creator>
    <dc:date>2023-05-10T13:49:22Z</dc:date>
    <item>
      <title>How to scan for a specific work or number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874688#M345604</link>
      <description>&lt;P&gt;I have this data:&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input test $25. ;&lt;BR /&gt;cards;&lt;BR /&gt;0 | 0 | 0 | 0 | 0 &lt;BR /&gt;0 | 1 | 0 &lt;BR /&gt;1&lt;BR /&gt;2 &lt;BR /&gt;0 | 24 | 0 &lt;BR /&gt;0 | 0 | 0 | 23 &lt;BR /&gt;0 | 0| 23 | 24 | 1&lt;BR /&gt;0 | 0&lt;BR /&gt;0 | 0 | 1 &lt;BR /&gt;0&lt;BR /&gt;27&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to have this:&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;input test $22. want 4. ;&lt;BR /&gt;cards;&lt;BR /&gt;0 | 0 | 0 | 0 | 0 1 &lt;BR /&gt;0 | 1 | 0 0&lt;BR /&gt;1 0&lt;BR /&gt;2 0&lt;BR /&gt;0 | 24 | 0 0 &lt;BR /&gt;0 | 0 | 0 | 23 0 &lt;BR /&gt;0 | 0 | 23 | 24 | 1 0&lt;BR /&gt;0 | 0 1&lt;BR /&gt;0 | 0 | 1 0&lt;BR /&gt;0 1&lt;BR /&gt;27 0&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;The values were separated by " | " and I need to find what obs that have ONLY zero. I tried to use a couple of procedures but NONE seems working properly. If anyone can help I would highly appreciate!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Le&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 15:53:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874688#M345604</guid>
      <dc:creator>binhle50</dc:creator>
      <dc:date>2023-05-09T15:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to scan for a specific work or number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874689#M345605</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input test $25. ;
cards;
0 | 0 | 0 | 0 | 0
0 | 1 | 0
1
2
0 | 24 | 0
0 | 0 | 0 | 23
0 | 0| 23 | 24 | 1
0 | 0
0 | 0 | 1
0
27
;
run;
proc print;
run;

data want;
  set have;
  want=^lengthn(compress(test,"0|","s"));
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 May 2023 15:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874689#M345605</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-05-09T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to scan for a specific work or number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874691#M345606</link>
      <description>Awesome! Thanks so much. It works perfectly</description>
      <pubDate>Tue, 09 May 2023 16:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874691#M345606</guid>
      <dc:creator>binhle50</dc:creator>
      <dc:date>2023-05-09T16:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to scan for a specific work or number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874924#M345702</link>
      <description>&lt;P&gt;For having some fun.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input test $25. ;
cards;
0 | 0 | 0 | 0 | 0
0 | 1 | 0
1
2
0 | 24 | 0
0 | 0 | 0 | 23
0 | 0| 23 | 24 | 1
0 | 0
0 | 0 | 1
0
27
;
run;


data want;
  set have;
  want=verify(test,"0| ")=0;
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1683724088535.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83808i9F0D664D6E5E4130/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1683724088535.png" alt="Ksharp_0-1683724088535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 13:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874924#M345702</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-05-10T13:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to scan for a specific work or number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874946#M345707</link>
      <description>Wow that is fun. Awesome! Thanks!</description>
      <pubDate>Wed, 10 May 2023 13:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-scan-for-a-specific-work-or-number/m-p/874946#M345707</guid>
      <dc:creator>binhle50</dc:creator>
      <dc:date>2023-05-10T13:49:22Z</dc:date>
    </item>
  </channel>
</rss>

