<?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 Change case of variable name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39608#M10237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to change the letters in a variable name from uppercase to lowercase? &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>Thu, 26 Jan 2012 22:46:11 GMT</pubDate>
    <dc:creator>aerbe</dc:creator>
    <dc:date>2012-01-26T22:46:11Z</dc:date>
    <item>
      <title>Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39608#M10237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to change the letters in a variable name from uppercase to lowercase? &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>Thu, 26 Jan 2012 22:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39608#M10237</guid>
      <dc:creator>aerbe</dc:creator>
      <dc:date>2012-01-26T22:46:11Z</dc:date>
    </item>
    <item>
      <title>Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39609#M10238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never did it!&amp;nbsp; However, rename in a datastep should work (e.g., UNTESTED:) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class(rename=(name=NAME));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't test it at the moment, but I would think that the lowcase, upcase and propcase functions could be used as well.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class(rename=(name=upcase(NAME)));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 23:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39609#M10238</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-26T23:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39610#M10239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need %SYSFUNC, as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; have ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;myvar = &lt;SPAN style="color: #008080;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New; color: #000080;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;set&lt;/SPAN&gt; have(rename=(myvar=&lt;SPAN style="color: #0000ff;"&gt;%sysfunc&lt;/SPAN&gt;(upcase(myvar))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New; color: #0000ff;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;put&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;_all_&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Courier New; color: #000080;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 23:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39610#M10239</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2012-01-26T23:22:04Z</dc:date>
    </item>
    <item>
      <title>Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39611#M10240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Use the RENAME statement in PROC DATASETS (avoiding recreating the data set):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;&amp;nbsp; myvar = 0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; set have;&lt;BR /&gt;&amp;nbsp; put _all_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc datasets lib=work nolist;&lt;BR /&gt;&amp;nbsp; modify have;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename myvar=MYVAR;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; set have;&lt;BR /&gt;&amp;nbsp; put _all_;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 23:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39611#M10240</guid>
      <dc:creator>BobD</dc:creator>
      <dc:date>2012-01-26T23:39:11Z</dc:date>
    </item>
    <item>
      <title>Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39612#M10241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input (AA&amp;nbsp; BB&amp;nbsp; cc) ($);&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;qw er ty&lt;/P&gt;&lt;P&gt;cd rt ty&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select catx('=',name,lowcase(name)) into : names separated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname='WORK' and memname='HAVE';&lt;/P&gt;&lt;P&gt; quit;&lt;/P&gt;&lt;P&gt; proc datasets lib=work nolist;&lt;/P&gt;&lt;P&gt; modify have;&lt;/P&gt;&lt;P&gt; rename &amp;amp;names;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 01:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39612#M10241</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-27T01:07:54Z</dc:date>
    </item>
    <item>
      <title>Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39613#M10242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Bob, this worked well! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 19:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/39613#M10242</guid>
      <dc:creator>aerbe</dc:creator>
      <dc:date>2012-02-03T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change case of variable name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/334692#M62894</link>
      <description>%let per = %sysfunc(lowcase(&amp;amp;period));&lt;BR /&gt;%put &amp;amp;per;&lt;BR /&gt;feb2017&lt;BR /&gt;&lt;BR /&gt;With this I can now read/email sas datasets. filename_@per.sas7bdat files in UNIX/LINUX !!! Yey!!!&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-case-of-variable-name/m-p/334692#M62894</guid>
      <dc:creator>RICARDOIS</dc:creator>
      <dc:date>2017-02-21T16:00:48Z</dc:date>
    </item>
  </channel>
</rss>

