<?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: Is there a funtion to adjust the letter capitallization automatically. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707645#M217294</link>
    <description>&lt;P&gt;You will need a computer that speaks English.&amp;nbsp; After all, how do you treat:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pfizer transmitted its data about ABC, a new drug that aids in treatment of AIDS, a Sexually Transmitted Disease&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One "aids", one "AIDS", one "transmitted", one "Transmitted"&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 12:06:50 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2020-12-22T12:06:50Z</dc:date>
    <item>
      <title>Is there a funtion to adjust the letter capitallization automatically.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707602#M217274</link>
      <description>&lt;P&gt;Is there a funtion to captalize the first letter and terminology, the prepositionis and articles are in lower case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var='aids is one of the&amp;nbsp;&lt;SPAN&gt;sexually transmitted diseases'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;a funtion is called wordcase to adjust the letter capitallization automatically.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;wordcase(var)='AIDS is one of the Sexually Transmitted Diseases'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 03:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707602#M217274</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2020-12-22T03:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a funtion to adjust the letter capitallization automatically.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707605#M217277</link>
      <description>&lt;P&gt;The closest SAS function is function propcase.&lt;/P&gt;
&lt;P&gt;To post-process a string to your needs, you can do something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data T;
  V1='aids is one of the sexually transmitted diseases'
  V2=propcase(V1); 
  V2=prxchange('s/\b(AIDS|NATO|POTUS)\b/\U\1\E/i'          , -1, V2);
  V2=prxchange('s/\b(is|are|one|of|with|the|at)\b/\L\1\E/i', -1, V2);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;V2=AIDS is one of the Sexually Transmitted Diseases&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 03:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707605#M217277</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-22T03:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a funtion to adjust the letter capitallization automatically.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707645#M217294</link>
      <description>&lt;P&gt;You will need a computer that speaks English.&amp;nbsp; After all, how do you treat:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pfizer transmitted its data about ABC, a new drug that aids in treatment of AIDS, a Sexually Transmitted Disease&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One "aids", one "AIDS", one "transmitted", one "Transmitted"&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 12:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707645#M217294</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-12-22T12:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a funtion to adjust the letter capitallization automatically.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707833#M217394</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp; ， thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the array, and some functions, and&amp;nbsp;&lt;SPAN&gt;regEx&amp;nbsp;functions can solve the&amp;nbsp;letter capitallization, hope a new function can do it directly in the future.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 05:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707833#M217394</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2020-12-23T05:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a funtion to adjust the letter capitallization automatically.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707836#M217396</link>
      <description>hope there is a new function can do it directly in the future.</description>
      <pubDate>Wed, 23 Dec 2020 05:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707836#M217396</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2020-12-23T05:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a funtion to adjust the letter capitallization automatically.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707837#M217397</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;hope a new function can do it directly in the future.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;That won't happen. Every user has a different set of words and logic to process in a specific manner.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 05:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-funtion-to-adjust-the-letter-capitallization/m-p/707837#M217397</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-23T05:46:12Z</dc:date>
    </item>
  </channel>
</rss>

