<?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: RENAME statement help! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148606#M39316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This means that the way you typed Price_S doesn't quite match what the name of the variable actually is. Copy it from the proc contents output and paste that into the code. I suspect there may be two or more _ in the actual name together and it just looks like one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 22:03:49 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-10-29T22:03:49Z</dc:date>
    <item>
      <title>RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148602#M39312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have been trying to rename the numeric variable 'Price S' to just 'price' but for some reason this variable, along with 'Price US', produce error messages when I run the program. I have been able to change carat &lt;STRONG&gt;➟&lt;/STRONG&gt;car, color&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;➟&lt;/STRONG&gt;&lt;/SPAN&gt;col, and certification&lt;SPAN style="font-size: 16px;"&gt;&lt;STRONG&gt;➟&lt;/STRONG&gt;&lt;/SPAN&gt;cert. Below is the code I am running. If anyone can help it would be greatly appreciated, Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 12pt;"&gt;PROC IMPORT datafile="&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;home/michaelfletcher/FletcherSAS/WORK/D&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;ATA/Diamonds.xls"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT=WORK.Diamonds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=xls&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;DATA diam;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET Diamonds;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;DATA diam&lt;SPAN style="color: #ff0000;"&gt; &lt;STRONG&gt;(rename=(carat=car color=col certification=cert Price_S=price));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET diamonds;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;PROC CONTENTS data=diam;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Michael Fletcher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148602#M39312</guid>
      <dc:creator>FLETCHSAS</dc:creator>
      <dc:date>2014-10-29T21:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148603#M39313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please supply the error messages. They are often very helpful in diagnosing problems.&lt;/P&gt;&lt;P&gt;Also if there are any warnings in the log or notes related to encoding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148603#M39313</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-29T21:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148604#M39314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks nothing wrong with DATA STEPS in your code. below code works fine so do yours too...check variable name for your input dataset in rename step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; carat=123;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; color=345;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; certification=56789;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; price_s=465789;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data b (rename=(carat=car color=col certification=cert Price_s=price));&lt;/P&gt;&lt;P&gt;set a;&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;what is your error message ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148604#M39314</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-10-29T21:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148605#M39315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ERROR messages. The proc contents still shows the same variable name and I get this warning message:&lt;/P&gt;&lt;P class="sasWarning focus-line" id="sasLogWarning1_1414619846939" style="color: #008000; font-family: Consolas, Courier, 'Courier New'; font-size: 14.3999996185303px; background-color: #c5ced8;"&gt; WARNING: The variable Price_S in the DROP, KEEP, or RENAME list has never been referenced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148605#M39315</guid>
      <dc:creator>FLETCHSAS</dc:creator>
      <dc:date>2014-10-29T22:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148606#M39316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This means that the way you typed Price_S doesn't quite match what the name of the variable actually is. Copy it from the proc contents output and paste that into the code. I suspect there may be two or more _ in the actual name together and it just looks like one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148606#M39316</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-29T22:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148607#M39317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I copy &amp;amp; paste ''Price S" it returns this error message:&lt;/P&gt;&lt;P class="sasError focus-line" id="sasLogError1_1414621154729" style="color: red; font-family: Consolas, Courier, 'Courier New'; font-size: 14.3999996185303px; background-color: #c5ced8;"&gt; ERROR 79-322: Expecting a =.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148607#M39317</guid>
      <dc:creator>FLETCHSAS</dc:creator>
      <dc:date>2014-10-29T22:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148608#M39318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show us the proc contents output.&lt;/P&gt;&lt;P&gt;And the code that generated the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 23:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148608#M39318</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-29T23:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME statement help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148609#M39319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Price S" is not a valid SAS variable name so you may need to do the rename like this: (rename = ('Price S'n = Price))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 23:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/RENAME-statement-help/m-p/148609#M39319</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-10-29T23:54:30Z</dc:date>
    </item>
  </channel>
</rss>

