<?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: First Letter upcase if first name has two words in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/First-Letter-upcase-if-first-name-has-two-words/m-p/933910#M367285</link>
    <description>&lt;P&gt;For your example you want the Propcase function:&lt;/P&gt;
&lt;PRE&gt;data have;
informat text $30.;
input text &amp;amp;;
text = propcase(text);
cards;
abc def
xyz mno rptd
def

;&lt;/PRE&gt;
&lt;P&gt;However depending on national language for some names this may not be what is actually wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post code in either a text or code opened with the &amp;lt;/&amp;gt; or "running man" icons appearing above the message window. Some data steps will not run after pasting into the main message windows on this forum as the forum software reformats pasted text.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 03:51:02 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-06-28T03:51:02Z</dc:date>
    <item>
      <title>First Letter upcase if first name has two words</title>
      <link>https://communities.sas.com/t5/SAS-Programming/First-Letter-upcase-if-first-name-has-two-words/m-p/933909#M367284</link>
      <description>&lt;P&gt;Iam looking for out put like below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if first letter has two words like : abc def&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output : Abc Def&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;informat text $30.;&lt;/P&gt;
&lt;P&gt;input text &amp;amp;;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;abc def&lt;/P&gt;
&lt;P&gt;xyz mno rptd&lt;/P&gt;
&lt;P&gt;def&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Abc Def&lt;/P&gt;
&lt;P&gt;Xyz Mno Rptd&lt;/P&gt;
&lt;P&gt;Def&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 14:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/First-Letter-upcase-if-first-name-has-two-words/m-p/933909#M367284</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-27T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: First Letter upcase if first name has two words</title>
      <link>https://communities.sas.com/t5/SAS-Programming/First-Letter-upcase-if-first-name-has-two-words/m-p/933910#M367285</link>
      <description>&lt;P&gt;For your example you want the Propcase function:&lt;/P&gt;
&lt;PRE&gt;data have;
informat text $30.;
input text &amp;amp;;
text = propcase(text);
cards;
abc def
xyz mno rptd
def

;&lt;/PRE&gt;
&lt;P&gt;However depending on national language for some names this may not be what is actually wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post code in either a text or code opened with the &amp;lt;/&amp;gt; or "running man" icons appearing above the message window. Some data steps will not run after pasting into the main message windows on this forum as the forum software reformats pasted text.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 03:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/First-Letter-upcase-if-first-name-has-two-words/m-p/933910#M367285</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-28T03:51:02Z</dc:date>
    </item>
  </channel>
</rss>

