<?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: Renaming a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858201#M339082</link>
    <description>&lt;P&gt;For such names, you need to use a&amp;nbsp;&lt;EM&gt;name literal&lt;/EM&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data apt_data1 (rename=('no-show'n=show));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Feb 2023 06:37:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-02-10T06:37:27Z</dc:date>
    <item>
      <title>Renaming a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858199#M339081</link>
      <description>&lt;P&gt;Hello everyone;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new SAS user and am trying to create a data analysis project using SAS. I tried renaming a variable with the name "No-Show" to "Show". I tried using all the renaming methods but was not able to change the name of the variable. Kindly guide me on how I can do this. Your help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the code I wrote-&lt;/P&gt;&lt;P&gt;options validvarname=any;&lt;BR /&gt;libname aman "/home/u58428058/Aman2023";&lt;/P&gt;&lt;P&gt;data apt_data1 (rename=(no-show=show));&lt;BR /&gt;set aman.apt_data;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the error I am getting-&lt;/P&gt;&lt;DIV class=""&gt;68&lt;/DIV&gt;&lt;DIV class=""&gt;69 data apt_data1 (rename=(no-show=show));&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: no does not have a numeric suffix.&lt;/DIV&gt;&lt;DIV class=""&gt;70 set aman.apt_data;&lt;/DIV&gt;&lt;DIV class=""&gt;71 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;kindly help.&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Feb 2023 06:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858199#M339081</guid>
      <dc:creator>a_matharu</dc:creator>
      <dc:date>2023-02-10T06:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858201#M339082</link>
      <description>&lt;P&gt;For such names, you need to use a&amp;nbsp;&lt;EM&gt;name literal&lt;/EM&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data apt_data1 (rename=('no-show'n=show));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Feb 2023 06:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858201#M339082</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-10T06:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858243#M339095</link>
      <description>&lt;P&gt;Thank you for your kind reply.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renaming-a-variable/m-p/858243#M339095</guid>
      <dc:creator>a_matharu</dc:creator>
      <dc:date>2023-02-10T13:25:18Z</dc:date>
    </item>
  </channel>
</rss>

