<?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: Convert First letter of string to upper case WITHOUT using upcase in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160079#M263245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the "correct answer". &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 22:52:23 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-03-28T22:52:23Z</dc:date>
    <item>
      <title>Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160063#M263229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest me-&lt;/P&gt;&lt;P&gt;How to convert the first letter of string to upper case without using upcase function.The data is in SAS dataset.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160063#M263229</guid>
      <dc:creator>Dipu</dc:creator>
      <dc:date>2014-03-28T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160064#M263230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We could use the propcase function instead of upcase function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function will capitalize the first letter in a word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160064#M263230</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-03-28T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160065#M263231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not upcase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160065#M263231</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-28T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160066#M263232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a class project.&amp;nbsp; Regardless, you can always mimic the upcase function using the byte and rank functions.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input string $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;this is Garbage&lt;/P&gt;&lt;P&gt;More garbage&lt;/P&gt;&lt;P&gt;buNch of Characters&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if rank(substr(string,1,1)) in (97:122) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(string,1,1)=byte(rank(substr(string,1,1))-32);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160066#M263232</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-03-28T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160067#M263233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagdish thank you for the prompt response.&lt;/P&gt;&lt;P&gt;unfortunately I can not use Propcase as well.Please suggest me other option, if we have&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160067#M263233</guid>
      <dc:creator>Dipu</dc:creator>
      <dc:date>2014-03-28T15:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160068#M263234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is awesome but again it is not working on my dataset.&lt;/P&gt;&lt;P&gt;Before writing errors which I am getting can you please throw some light, what exactly you did? I am unable to understand those figures. Please guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Reeza- Even I don't know. why not upcase, I assume upcase will convert the entire string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 18:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160068#M263234</guid>
      <dc:creator>Dipu</dc:creator>
      <dc:date>2014-03-28T18:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160069#M263235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is not working? is it getting an error? not changing anything?&lt;/P&gt;&lt;P&gt;Show an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 18:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160069#M263235</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-03-28T18:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160070#M263236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed why not UPCASE? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; str &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$20.&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; substr(str,&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;)=upcase(first(str));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;this&lt;BR /&gt; that.&lt;BR /&gt;Hello.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 18:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160070#M263236</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-28T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160071#M263237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@@@- This is what I tried!!&lt;/P&gt;&lt;P&gt;Please guide-&lt;/P&gt;&lt;P&gt;data j;&lt;/P&gt;&lt;P&gt;input name $20.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;P&gt;deepak&lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;&lt;P&gt;susan&lt;/P&gt;&lt;P&gt;maxia&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data J1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set J;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if rank(substr(string,1,1)) in (97:122) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(string,1,1)=byte(rank(substr(string,1,1))-32);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERRRORRRR******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;66&amp;nbsp;&amp;nbsp; data J1 ;&lt;/P&gt;&lt;P&gt;67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set J;&lt;/P&gt;&lt;P&gt;68&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if rank(substr(string,1,1)) in (97:122) then&lt;/P&gt;&lt;P&gt;69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(string,1,1)=byte(rank(substr(string,1,1))-32);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 356&lt;/P&gt;&lt;P&gt;ERROR: Argument to SUBSTR must be character.&lt;/P&gt;&lt;P&gt;NOTE 356-185: The SUBSTR pseudo-variable function does not allow character constants,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions, or numeric constants for the first argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;70&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Line):(Column).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 68:18&amp;nbsp;&amp;nbsp; 69:41&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.J1 may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 2 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.J1 was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160071#M263237</guid>
      <dc:creator>Dipu</dc:creator>
      <dc:date>2014-03-28T19:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160072#M263238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;propcase allowed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160072#M263238</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-03-28T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160073#M263239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Propcase is not allowed. Thats the problem-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though What Arthur has suggested, it works but not in my case, as mentioned above. (Please explain that step with RANK and BYTES and how did you calculate those numbers--97:122 and -32)&lt;BR /&gt;secondly @data_null_ has also suggested, it will work but looking for w/o propcase and upcase.&lt;/P&gt;&lt;P&gt;Even this works-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But as I said&amp;nbsp; looking for alternative&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; j;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;lavanya&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;nandu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;rachel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;vandana&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; J1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; j;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;Length&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; name_newvalues &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lenstr=length(trim(name));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;name_newvalue=upcase(substr(trim(name),&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;))||substr(trim(name),&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,lenstr-&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160073#M263239</guid>
      <dc:creator>Dipu</dc:creator>
      <dc:date>2014-03-28T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160074#M263240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't working for you because your file has a variable called "name"&amp;nbsp; while my example had a variable called "string".&amp;nbsp; You would have to change;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if rank(substr(string,1,1)) in (97:122) then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(string,1,1)=byte(rank(substr(string,1,1))-32);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;to&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if rank(substr(name,1,1)) in (97:122) then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(name,1,1)=byte(rank(substr(name,1,1))-32);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I'm also assuming that you are on an ASCII-based system like windows.&amp;nbsp; Otherwise, the values would have to be changed to reflect EBCIDIC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160074#M263240</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-03-28T19:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160075#M263241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this isn't really a practical question then, more of a homework assignment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substring the first letter out, use translate function to switch lower case to upper case and concatenate back.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160075#M263241</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-28T19:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160076#M263242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't say what wasn't working.&amp;nbsp; The explanation of the code is fairly simple.&amp;nbsp; The character values can be found at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://web.cs.mun.ca/~michael/c/ascii-table.html" title="http://web.cs.mun.ca/~michael/c/ascii-table.html"&gt;Table of ASCII Characters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look at the decimal values of A-Z and a-z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rank function:&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212189.htm" title="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212189.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Byte function: &lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000543481.htm" title="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000543481.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160076#M263242</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-03-28T19:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160077#M263243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A __default_attr="149594" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; for the explanation. I would like to go through the links first (Very well answered).&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;-- Actually, I have assigned this task by the data management (Oracle) Dpt of my company.&lt;/P&gt;&lt;P&gt;They can do this with oracle as well but they wanted to do it in SAS. Thanks though and also concatenation is the great approach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all of you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 21:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160077#M263243</guid>
      <dc:creator>Dipu</dc:creator>
      <dc:date>2014-03-28T21:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160078#M263244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody mentioned pattern matching? Impress your friends at DM with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;str = "capitalize this";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cstr = prxchange("s/^(.)/\u\1/o", 1, str);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put Cstr;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 21:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160078#M263244</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-28T21:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160079#M263245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the "correct answer". &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 22:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160079#M263245</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-28T22:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160080#M263246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beware of solutions that do not work with accented characters. Compare :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;retain MATCHstr RANKstr UPCASEstr PROPCASEstr "évariste Galois";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MATCHstr = prxchange("s/^(.)/\u\1/o",1,MATCHstr);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if rank(substr(RANKstr,1,1)) in (97:122) then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(RANKstr,1,1)=byte(rank(substr(RANKstr,1,1))-32);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;substr(UPCASEstr,1,1) = UPCASE(substr(UPCASEstr,1,1));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;substr(PROPCASEstr,1,1) = PROPCASE(substr(PROPCASEstr,1,1));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;put _ALL_ ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: 'times new roman', times;"&gt;MATCHstr=Évariste Galois RANKstr=évariste Galois UPCASEstr=Évariste Galois&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: 'times new roman', times;"&gt;PROPCASEstr=Évariste Galois _ERROR_=0 _N_=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 23:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160080#M263246</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-28T23:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert First letter of string to upper case WITHOUT using upcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160081#M263247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An beware of the assumption of 1-byte = 1 character it is something many people learned and thinking it is true.&lt;/P&gt;&lt;P&gt;We are living in the age of Unicode (UTF-8) word excel html are using that.&amp;nbsp;&amp;nbsp; Just old dinosaurusses are forgetting this.&amp;nbsp; &lt;BR /&gt;If you like to dig into that area of I18N see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/nlsref/67110/HTML/default/viewer.htm#p1pca7vwjjwucin178l8qddjn0gi.htm" title="https://support.sas.com/documentation/cdl/en/nlsref/67110/HTML/default/viewer.htm#p1pca7vwjjwucin178l8qddjn0gi.htm"&gt;SAS(R) 9.4 National Language Support (NLS): Reference Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 06:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-First-letter-of-string-to-upper-case-WITHOUT-using/m-p/160081#M263247</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-03-29T06:03:07Z</dc:date>
    </item>
  </channel>
</rss>

