<?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: FindC function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/808026#M318607</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;I just ran the below step and got the value as 1 and 3 for the variables lag1 and lag2. How it is 1 and 3?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
value="he_l l456#o";
lag1=findc(value,"","dks");
lag2=findc(value,"","adks");
run;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Apr 2022 15:11:50 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2022-04-15T15:11:50Z</dc:date>
    <item>
      <title>FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807011#M318074</link>
      <description>&lt;P&gt;what is the meaning of third argument (dks, adks) in FINDC function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Flag=findc(value,"","dks")
Flag2=findc(value,"","adks")&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Apr 2022 12:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807011#M318074</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-04-10T12:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807012#M318075</link>
      <description>&lt;P&gt;The documentation explains it all:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/n1mdh2gvd5potjn14jipysvzn4o7.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/n1mdh2gvd5potjn14jipysvzn4o7.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 12:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807012#M318075</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-10T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807019#M318079</link>
      <description>&lt;P&gt;The third argument specifies any modifiers you want to apply to the function. These modifiers are common to the FIND* family of SAS functions and related functions like COUNT* and string manipulation functions like &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/n0fcshr0ir3h73n1b845c4aq58hz.htm" target="_self"&gt;COMPRESS&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use modifiers to narrow or control the characters that would fit your "find" operation. Want to find just digits? Use 'd'. Want to find digits&amp;nbsp;&lt;STRONG&gt;and&lt;/STRONG&gt; punctuation? Use 'dp'. The&amp;nbsp;&lt;STRONG&gt;k&lt;/STRONG&gt; modifier inverts the pattern, ex: 'dpk' means find anything&amp;nbsp;&lt;STRONG&gt;except&lt;/STRONG&gt; digits and punctuation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in your example, 'dks' means "any character&amp;nbsp;&lt;STRONG&gt;except&lt;/STRONG&gt; digits and space".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Related: these functions with modifiers are somewhat easier to understand than using regular expressions (supported in the PRX* family of functions) -- but if you love regex and want that flexibility, use those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And there are simpler functions in the ANY* family of functions for specific patterns, like &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/n18gvgof0htmpsn1rt2j7ogdq1jc.htm" target="_self"&gt;ANYALNUM&lt;/A&gt;&amp;nbsp;to find the first alphanumeric character in a string, or &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/n1h7ar1edl9ydvn1p69br4zjsula.htm" target="_self"&gt;NOTALNUM&lt;/A&gt; to find the first that's&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; an alphanumeric character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 13:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807019#M318079</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-04-10T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807024#M318080</link>
      <description>I can understand the meaning of 'dks' now. What is 'adks' then?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 10 Apr 2022 13:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807024#M318080</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-04-10T13:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807026#M318081</link>
      <description>&lt;P&gt;'a' adds alphabetic characters, so 'adks' is "any character except alpha, digit, space" -- so punctuation, underscore, etc would match. These modifiers are listed in the SAS documentation for each of the functions, which&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;linked to for &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/n1mdh2gvd5potjn14jipysvzn4o7.htm" target="_self"&gt;FINDC&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 14:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/807026#M318081</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-04-10T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/808026#M318607</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;I just ran the below step and got the value as 1 and 3 for the variables lag1 and lag2. How it is 1 and 3?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
value="he_l l456#o";
lag1=findc(value,"","dks");
lag2=findc(value,"","adks");
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Apr 2022 15:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/808026#M318607</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-04-15T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: FindC function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/808027#M318608</link>
      <description>&lt;P&gt;In the first call, the letter "h" is the first character that is &lt;EM&gt;not a digit&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;not a punctuation&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;In the second call, the underline is the first character that is&amp;nbsp;&lt;EM&gt;not a letter&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;not a digit&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;not a punctuation&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 15:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FindC-function/m-p/808027#M318608</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-15T15:20:50Z</dc:date>
    </item>
  </channel>
</rss>

