<?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: Can I rename variables to make them have spaces? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510433#M1951</link>
    <description>&lt;P&gt;I was thinking of doing it on as a final step.&lt;BR /&gt;&lt;BR /&gt;ie&amp;nbsp; Write my code, and then before the final output table change the variable names where needed.&amp;nbsp; This will save me probably a day of work on my dashboards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how do I rename them?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 15:04:26 GMT</pubDate>
    <dc:creator>BarryP</dc:creator>
    <dc:date>2018-11-05T15:04:26Z</dc:date>
    <item>
      <title>Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510426#M1947</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm using Enterprise Guide 7.1 (16 bit) and would like to change VARIABLE_NAME to VARIABLE NAME.&lt;BR /&gt;&lt;BR /&gt;The reason is that I have reports in Visual Analytics that are using tables imported from Excel.&amp;nbsp; I'm currently trying to replace the Excel tables with tables created in SAS.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm expecting that I'm going to have to use underscores and then manually point all of the new variables to the tables in those reports that currently use variables with spaces.&amp;nbsp; I'd like to avoid this if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510426#M1947</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2018-11-05T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510429#M1948</link>
      <description>&lt;P&gt;Yes, you can, but .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From that point forward you will have to refer to the variable as "Variable Name"n.&amp;nbsp; That's a little clumsy.&amp;nbsp; Is it worth the effort?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510429#M1948</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-05T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510431#M1949</link>
      <description>&lt;P&gt;Yes, you can.&lt;/P&gt;
&lt;P&gt;No, you shouldn't. Simply because using name literals is an unnecessary PITA. Put fancy wordings in labels, where they belong.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510431#M1949</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-05T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510432#M1950</link>
      <description>&lt;P&gt;Agreeing with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;, and adding that you want to use labels in the case where you need a "nice" appearance to your results, you don't want variable names to be used for that purpose.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510432#M1950</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-11-05T15:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510433#M1951</link>
      <description>&lt;P&gt;I was thinking of doing it on as a final step.&lt;BR /&gt;&lt;BR /&gt;ie&amp;nbsp; Write my code, and then before the final output table change the variable names where needed.&amp;nbsp; This will save me probably a day of work on my dashboards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how do I rename them?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510433#M1951</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2018-11-05T15:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510434#M1952</link>
      <description>&lt;P&gt;Thanks Paige.&amp;nbsp; If I under understand things correctly, labels would only effect a SAS output like proc print, or some other way to maybe look at a report through Web Report Studio.&amp;nbsp; Instead I'm viewing everything in SAS Visual Analytics, which would, I *think* be reading the variable names, not the labels.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the future when I'm doing more and more SAS coding, I believe it makes sense to use variables without spaces and then later rename then in SAS VA rather than in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510434#M1952</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2018-11-05T15:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510437#M1954</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84517"&gt;@BarryP&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was thinking of doing it on as a final step.&lt;BR /&gt;&lt;BR /&gt;ie&amp;nbsp; Write my code, and then before the final output table change the variable names where needed.&amp;nbsp; This will save me probably a day of work on my dashboards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how do I rename them?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rename name_with_underlines = 'name without underlines'n;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Similar for the rename dataset option.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510437#M1954</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-05T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I rename variables to make them have spaces?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510480#M1966</link>
      <description>&lt;P&gt;Okay, I have it figured out.&amp;nbsp; It was pretty simple.&amp;nbsp; I was missing a semicolon and thought I was having a syntax issue.&lt;BR /&gt;&lt;BR /&gt;Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rename VARIABLE_NAME = 'VARIABLE NAME'n;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As stated in the replies, this is not good practice.&amp;nbsp; However, my SAS Visual Analytics dashboard is already utilizing variable names with spaces, and it'll be too much work to go through the effort of renaming all of them in the dashboard.&lt;BR /&gt;&lt;BR /&gt;I plan to do this as a final step in my code in order to rename all of the variables to match the tables already used in my dashboards so that I can replace them seamlessly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 16:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-I-rename-variables-to-make-them-have-spaces/m-p/510480#M1966</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2018-11-05T16:14:35Z</dc:date>
    </item>
  </channel>
</rss>

