<?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: How to rename variable in PROC SQL? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359465#M64385</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24237"&gt;@elwayfan446&lt;/a&gt;, this sounds like a new question. &amp;nbsp;Want to create a new topic with some sample code? &amp;nbsp;ODS EXCEL is for ODS output, not data sets exactly, so it doesn't really play into PROC SQL unless you're leaving off the CREATE TABLE statement.&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 19:26:38 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2017-05-17T19:26:38Z</dc:date>
    <item>
      <title>How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/330995#M62659</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to rename the following variable in Proc SQL although I know it could be done in SAS data steps. &amp;nbsp;But I would like to use in PROC SQL, how? &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; dataout.rename;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dataout.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename HAVARTH3=AR _PRACE=RACE _AGEG5YR=AGE _INCOMG=INCOME _HCVU651=INSURANCE _BMI5CAT=BMI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LMTJOIN3=LMTJOIN&amp;nbsp; DRNKANY5=DRNKANY&amp;nbsp;&amp;nbsp; DIABETE3=DIABETE _SMOKER3=SMOKER;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/330995#M62659</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-02-08T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331021#M62666</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
    CREATE TABLE dataout.rename AS
        SELECT  HAVARTH3        AS AR 
               ,_PRACE          AS RACE
               ,_AGEG5YR        AS AGE 
               ,_INCOMG         AS INCOME
               ,_HCVU651        AS INSURANCE 
               ,_BMI5CAT        AS BMI
               ,LMTJOIN3        AS LMTJOIN
               ,DRNKANY5        AS DRNKANY
               ,DIABETE3        AS DIABETE
               ,_SMOKER3        AS SMOKER
       FROM     dataout.test;
;QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331021#M62666</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-02-08T22:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331039#M62667</link>
      <description>&lt;P&gt;Unrelated question: Is there any chance this data is coming from BRFSS?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331039#M62667</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-08T23:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331048#M62669</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 01:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331048#M62669</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-02-09T01:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331049#M62670</link>
      <description>&lt;P&gt;yes, you worked on it before?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 01:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/331049#M62670</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-02-09T01:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359464#M64384</link>
      <description>&lt;P&gt;Can you tell me why the renamed columns don't export to excel using ods excel file = "" ?&amp;nbsp; The regular variable names are what get exported instead.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 19:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359464#M64384</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2017-05-17T19:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359465#M64385</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24237"&gt;@elwayfan446&lt;/a&gt;, this sounds like a new question. &amp;nbsp;Want to create a new topic with some sample code? &amp;nbsp;ODS EXCEL is for ODS output, not data sets exactly, so it doesn't really play into PROC SQL unless you're leaving off the CREATE TABLE statement.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 19:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359465#M64385</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-05-17T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename variable in PROC SQL?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359471#M64386</link>
      <description>Thanks Chris. I was using the output method but you bringing up the create table statement made me realize that creating a temp table and using proc export was much easier and fixed my problem.</description>
      <pubDate>Wed, 17 May 2017 19:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-rename-variable-in-PROC-SQL/m-p/359471#M64386</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2017-05-17T19:37:05Z</dc:date>
    </item>
  </channel>
</rss>

