<?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 PROPCASE not Acronym in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483579#M125411</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need how converting the first letter of each word on a title excluding the acronym. Please see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; HAVE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; title &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$40.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cards&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRINCIPAL ABC SCHOOL&lt;/P&gt;&lt;P&gt;ACCT TEACHER CBS SCHOOL&lt;/P&gt;&lt;P&gt;MATH TEACHER NY SCHOOL&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; title;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; HAVE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;title2&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = PROPCASE(TITLE);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should be:&lt;/P&gt;&lt;P&gt;Principal ABC School&lt;/P&gt;&lt;P&gt;ACCT Teacher CBS School&lt;/P&gt;&lt;P&gt;Math&amp;nbsp;Teacher NY School&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 20:17:45 GMT</pubDate>
    <dc:creator>BonnaryW</dc:creator>
    <dc:date>2018-08-02T20:17:45Z</dc:date>
    <item>
      <title>PROPCASE not Acronym</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483579#M125411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need how converting the first letter of each word on a title excluding the acronym. Please see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; HAVE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; title &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$40.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cards&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRINCIPAL ABC SCHOOL&lt;/P&gt;&lt;P&gt;ACCT TEACHER CBS SCHOOL&lt;/P&gt;&lt;P&gt;MATH TEACHER NY SCHOOL&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; title;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; HAVE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;title2&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = PROPCASE(TITLE);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should be:&lt;/P&gt;&lt;P&gt;Principal ABC School&lt;/P&gt;&lt;P&gt;ACCT Teacher CBS School&lt;/P&gt;&lt;P&gt;Math&amp;nbsp;Teacher NY School&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483579#M125411</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2018-08-02T20:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROPCASE not Acronym</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483582#M125413</link>
      <description>&lt;P&gt;Do have a list of all of the acronyms to avoid?&lt;/P&gt;
&lt;P&gt;If not you will have to be able to provide some rule(s) for which strings are acromyns and which aren't. And with all of the organizations out there the work to create acronyms that spell a related word lots of luck finding a rule that will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may be able to extract each "word" using scan and testing the value against a list using IN something like:&lt;/P&gt;
&lt;PRE&gt;data HAVE;
input title $40.;
length newtitle word $ 40. ;
do i= 1 to countw(title);
   word =scan(title,i); 
   if word  not in ('ABC','ACCT','CBS' 'NY') then newtitle=catx(' ',newtitle,propcase(word));
   else newtitle = catx(' ',newtitle,word);
end;
drop i word;
cards;
PRINCIPAL ABC SCHOOL
ACCT TEACHER CBS SCHOOL
MATH TEACHER NY SCHOOL
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483582#M125413</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-02T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROPCASE not Acronym</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483606#M125424</link>
      <description>Thank you for responding to my post. It work. Now, I am having problem with title have special characters (',' , '&amp;amp;', '/') , it get drop off from the title.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2018 22:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483606#M125424</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2018-08-02T22:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROPCASE not Acronym</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483612#M125426</link>
      <description>&lt;P&gt;propcase() does not remove these.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to remove them? If so, use the compress function.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 23:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483612#M125426</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-02T23:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROPCASE not Acronym</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483617#M125428</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49478"&gt;@BonnaryW&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for responding to my post. It work. Now, I am having problem with title have special characters (',' , '&amp;amp;', '/') , it get drop off from the title.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your example data should provide examples of all of the types of values you need to address.&lt;/P&gt;
&lt;P&gt;Since you do not show an example yet with special characters we can't tell what you may want to do with them.&lt;/P&gt;
&lt;P&gt;blank ! $ % &amp;amp; ( ) * + , - . / ; &amp;lt; ^ |&amp;nbsp; are standard delimiters for the SCAN function and would break words bits by those characters and NOT include them in the output.. If the only character you want as a delimiter is the space character then modify the scan function call as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;word =scan(title,i,' ');&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;But if any of your bits with the special characters include a mix of acronym and non-acronym the coding is going to get more complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 23:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/483617#M125428</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-02T23:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROPCASE not Acronym</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/484506#M125794</link>
      <description>Thank you everyone for your response.</description>
      <pubDate>Mon, 06 Aug 2018 19:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROPCASE-not-Acronym/m-p/484506#M125794</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2018-08-06T19:38:43Z</dc:date>
    </item>
  </channel>
</rss>

