<?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 Renaming unconventional Variable names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25981#M4593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've imported data from an Excel spreadsheet and some variable names have spaces characters that SAS doesnt like too much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the data step how would i rename these variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've tried&lt;/P&gt;&lt;P&gt;RENAME "VAR ONE" =VAR_ONE ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;RENAME "ACCT#" = ACCOUNT_NUMB ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that didnt seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jan 2012 21:59:01 GMT</pubDate>
    <dc:creator>Danglytics</dc:creator>
    <dc:date>2012-01-08T21:59:01Z</dc:date>
    <item>
      <title>Renaming unconventional Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25981#M4593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've imported data from an Excel spreadsheet and some variable names have spaces characters that SAS doesnt like too much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the data step how would i rename these variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've tried&lt;/P&gt;&lt;P&gt;RENAME "VAR ONE" =VAR_ONE ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;RENAME "ACCT#" = ACCOUNT_NUMB ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that didnt seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 21:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25981#M4593</guid>
      <dc:creator>Danglytics</dc:creator>
      <dc:date>2012-01-08T21:59:01Z</dc:date>
    </item>
    <item>
      <title>Renaming unconventional Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25982#M4594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you used the EG import wizard easiest would be to re-import the Excel and to tick the box in the import wizard saying "rename columns to comply with SAS naming conventions".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else: The quoting for literals looks like '&amp;lt;varname'n &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename 'VAR ONE'n = VAR_ONE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 22:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25982#M4594</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-01-08T22:36:37Z</dc:date>
    </item>
    <item>
      <title>Renaming unconventional Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25983#M4595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;proc datasets library=work nolist;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;modify your_dataset;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;rename 'var one'n=var_one;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 23:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-unconventional-Variable-names/m-p/25983#M4595</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-08T23:25:01Z</dc:date>
    </item>
  </channel>
</rss>

