<?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: Capitalizing first letter of lending companies, while keeping 'LLC' capitalized, and removing... in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691617#M37315</link>
    <description>&lt;P&gt;I was wondering the same thing about LLC. I probably did a bad job of explaining it, but the question is just as unclear to me about it.&amp;nbsp; Here is the question:&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;EM&gt;Clean the Lender variable so that it follows a standard format [e.g., only the first letter is uppercase per word, LLC remains uppercase (, LLC), NA, N/A, and N.A. are removed). Call this new variable Lender_clean.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 14 Oct 2020 18:12:55 GMT</pubDate>
    <dc:creator>BrockJarvie</dc:creator>
    <dc:date>2020-10-14T18:12:55Z</dc:date>
    <item>
      <title>Capitalizing first letter of lending companies, while keeping 'LLC' capitalized, and removing...</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691605#M37311</link>
      <description>&lt;P&gt;Hi, I'm currently working on a problem that asks me to create a new variable from a variable of lender companies, called &lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;Lender&lt;/FONT&gt;&lt;/STRONG&gt;,&amp;nbsp;&lt;/EM&gt;into a new variable&lt;/P&gt;&lt;P&gt;called&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;Lender_clean&lt;/FONT&gt;&lt;/STRONG&gt;.&amp;nbsp;&lt;/EM&gt;I must change&lt;EM&gt; Lender&lt;/EM&gt; to having the&lt;U&gt;&amp;nbsp;&lt;STRONG&gt;first letter of all the companies capitalized&lt;/STRONG&gt; &lt;/U&gt;while &lt;U&gt;&lt;STRONG&gt;keeping 'LLC' capitalized&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;and &lt;U&gt;removing all occurrences of '&lt;STRONG&gt;,LLC&lt;/STRONG&gt;', '&lt;STRONG&gt;NA&lt;/STRONG&gt;'&amp;nbsp; '&lt;STRONG&gt;N/A&lt;/STRONG&gt;' and '&lt;STRONG&gt;N.A&lt;/STRONG&gt;'&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;

   CREATE TABLE WORK.QUERY_FOR_FORECLOSURES AS 
SELECT t1.APN,

          t1.Lender, 

      FROM WORK.FORECLOSURES t1;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Below is the current output data of &lt;STRONG&gt;&lt;EM&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;Lender&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I'm trying to as much knowledge as I can over SAS/ProcSql functions as I can, so I'd appreciate any help on how I can do this.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691605#M37311</guid>
      <dc:creator>BrockJarvie</dc:creator>
      <dc:date>2020-10-14T17:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Capitalizing first letter of lending companies, while keeping 'LLC' capitalized, and removing...</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691613#M37313</link>
      <description>&lt;P&gt;The basic function is Propcase to make each word with a single capital.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you care about LLC when your second requirement is to remove it?&lt;/P&gt;
&lt;P&gt;I would use TRANWRD to remove the LLC, NA, N/A and N.A prior to using Propcase though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But your requirement is probably incomplete.&lt;/P&gt;
&lt;P&gt;For example you have this as a value:&lt;/P&gt;
&lt;PRE&gt;US Bank, N.A., as Trustee, c/o Select Portfolio Servicing&lt;/PRE&gt;
&lt;P&gt;If you remove N.A then you have left over . from the N.A. . So your remove list is incomplete.&lt;/P&gt;
&lt;P&gt;Second when you remove N.A. you will have&lt;/P&gt;
&lt;PRE&gt;US Bank, , as Trustee, c/o Select Portfolio Servicing&lt;/PRE&gt;
&lt;P&gt;So likely you need some additional rules regarding commas.&lt;/P&gt;
&lt;P&gt;You capitalization rule, assuming we have applied a likely rule for commas, yields this using the PROPCASE function&lt;/P&gt;
&lt;PRE&gt;US Bank, As Trustee, C/O Select Portfolio Servicing&lt;/PRE&gt;
&lt;P&gt;The As looks a bit odd and the C/O another.&lt;/P&gt;
&lt;P&gt;Maybe someone will come up with a good regular expression to fix this, I don't use them enough to help there. The approaches I would use a data step as there are likely to be enough conditionals that CASE statements get a bit clunky.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691613#M37313</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-14T18:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Capitalizing first letter of lending companies, while keeping 'LLC' capitalized, and removing...</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691617#M37315</link>
      <description>&lt;P&gt;I was wondering the same thing about LLC. I probably did a bad job of explaining it, but the question is just as unclear to me about it.&amp;nbsp; Here is the question:&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;EM&gt;Clean the Lender variable so that it follows a standard format [e.g., only the first letter is uppercase per word, LLC remains uppercase (, LLC), NA, N/A, and N.A. are removed). Call this new variable Lender_clean.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691617#M37315</guid>
      <dc:creator>BrockJarvie</dc:creator>
      <dc:date>2020-10-14T18:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Capitalizing first letter of lending companies, while keeping 'LLC' capitalized, and removing...</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691643#M37317</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/349329"&gt;@BrockJarvie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was wondering the same thing about LLC. I probably did a bad job of explaining it, but the question is just as unclear to me about it.&amp;nbsp; Here is the question:&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;EM&gt;Clean the Lender variable so that it follows a standard format [e.g., only the first letter is uppercase per word, LLC remains uppercase (, LLC), NA, N/A, and N.A. are removed). Call this new variable Lender_clean.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Given that text I would 1) ask for clarification and 2) without any clarification available assume bad punctuation in the text and just remove the NA, not the LLC.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 19:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Capitalizing-first-letter-of-lending-companies-while-keeping-LLC/m-p/691643#M37317</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-14T19:14:23Z</dc:date>
    </item>
  </channel>
</rss>

