<?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: Proc SQL does not rename one of the variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469024#M119892</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21133i34316A80BDB75418/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Jun 2018 14:38:32 GMT</pubDate>
    <dc:creator>larusso522</dc:creator>
    <dc:date>2018-06-10T14:38:32Z</dc:date>
    <item>
      <title>Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469008#M119883</link>
      <description>&lt;P&gt;For some reason SAS will not rename car_code as dominant, however, it names ID as TID. What could be the reason?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table ASH.DOM as&lt;BR /&gt;Select ID as TID, car_code as dominant, MKTSHR from ASH.DATAN group by ID HAVING MKTSHR=MAX(MKTSHR);&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 13:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469008#M119883</guid>
      <dc:creator>larusso522</dc:creator>
      <dc:date>2018-06-10T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469010#M119885</link>
      <description>&lt;P&gt;Is there an error in the SASLOG? Show us the SASLOG.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 13:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469010#M119885</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-10T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469017#M119889</link>
      <description>&lt;P&gt;Here is the log:&lt;/P&gt;&lt;P&gt;493&amp;nbsp; proc sql;&lt;BR /&gt;494&amp;nbsp; create table ASH.DOM as&lt;BR /&gt;495&amp;nbsp; Select ID, car_code as dominant, MKTSHR from ASH.DATAN group by ID HAVING MKTSHR=MAX(MKTSHR);&lt;BR /&gt;NOTE: The query requires remerging summary statistics back with the original data.&lt;BR /&gt;NOTE: Table ASH.DOM created, with 24442 rows and 3 columns.&lt;BR /&gt;&lt;BR /&gt;496&amp;nbsp; quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.11 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.14 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I use that column to make further calculations in another program, and that program actually retrieves the values named "dominant" but in my datasets the name of the variable is still car_code. For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table ASH.Datao as&lt;BR /&gt;Select a.*,b.dominant from ASH.Datan as a left outer join ASH.DOM as b on a.ID=b.ID;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469017#M119889</guid>
      <dc:creator>larusso522</dc:creator>
      <dc:date>2018-06-10T14:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469018#M119890</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;Also, I use that column to make further calculations in another program, and that program actually retrieves the values named "dominant" but in my datasets the name of the variable is still car_code. For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table ASH.Datao as&lt;BR /&gt;Select a.*,b.dominant from ASH.Datan as a left outer join ASH.DOM as b on a.ID=b.ID;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Based on what evidence are you saying that the variable is still named car_code? Please be very very specific explaining where you see this, or show us a screen capture.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469018#M119890</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-10T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469022#M119891</link>
      <description>&lt;P&gt;I suspect you see the &lt;EM&gt;label&lt;/EM&gt; of the variable, not its &lt;EM&gt;name&lt;/EM&gt;, as a column header perhaps in a VIEWTABLE window, SAS Universal Viewer or the like. PROC CONTENTS output should clarify this.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469022#M119891</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-06-10T14:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469024#M119892</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21133i34316A80BDB75418/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469024#M119892</guid>
      <dc:creator>larusso522</dc:creator>
      <dc:date>2018-06-10T14:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469025#M119893</link>
      <description>&lt;P&gt;These are the variable labels created in the SQL process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can switch VIEWTABLE to show the variable Names, its one of the menu options (I'm not able to run SAS at the moment so I can't be more specific, but I'm sure you can find it)&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469025#M119893</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-10T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL does not rename one of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469026#M119894</link>
      <description>&lt;P&gt;Ah okay. This is exactly what is happening. The label doesn't change. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp; Len&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format&amp;nbsp; Informat Label132&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MKTSHR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dominant&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;$2.&lt;/TD&gt;&lt;TD&gt;$2.&lt;/TD&gt;&lt;TD&gt;car_code&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-does-not-rename-one-of-the-variables/m-p/469026#M119894</guid>
      <dc:creator>larusso522</dc:creator>
      <dc:date>2018-06-10T14:53:45Z</dc:date>
    </item>
  </channel>
</rss>

