<?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: Export SAS Data to Excel - change var names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771960#M245047</link>
    <description>&lt;P&gt;EXCEL files do not have variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you asking how to make an Excel sheet with column headers that are different than the variable names in the source dataset?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Oct 2021 16:29:20 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-10-04T16:29:20Z</dc:date>
    <item>
      <title>Export SAS Data to Excel - change var names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771846#M244995</link>
      <description>&lt;P&gt;How to get SAS data into excel using different variable names?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 06:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771846#M244995</guid>
      <dc:creator>Reader587</dc:creator>
      <dc:date>2021-10-04T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771847#M244996</link>
      <description>&lt;P&gt;Please provide an example of your current variable names and what you expect the result to be.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 04:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771847#M244996</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-04T04:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS Data to Excel - change var names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771872#M245008</link>
      <description>&lt;P&gt;Depends on the way you used to export the dataset. So please post the code you have, so that we can suggest something working in your setup.&lt;/P&gt;
&lt;P&gt;Have a look at docs the rename-statement and/or the rename-option.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 08:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771872#M245008</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-10-04T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS Data to Excel - change var names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771881#M245010</link>
      <description>&lt;P&gt;A simple example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="newfile.xlsx";
proc print data=sashelp.class(rename=(height=tallness weight=heaviness sex=gender));
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771881#M245010</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-04T09:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS Data to Excel - change var names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771953#M245044</link>
      <description>1. Use labels and export with the labels instead - usually just an option to set on your export.&lt;BR /&gt;2. Change the variable names with a RENAME statement as a data set option (see PaigeMilers solution)&lt;BR /&gt;3. Export as separate tables using PROC REPORT and the NOHEADER options (overkill by far)</description>
      <pubDate>Mon, 04 Oct 2021 16:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771953#M245044</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-04T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS Data to Excel - change var names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771960#M245047</link>
      <description>&lt;P&gt;EXCEL files do not have variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you asking how to make an Excel sheet with column headers that are different than the variable names in the source dataset?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 16:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-Data-to-Excel-change-var-names/m-p/771960#M245047</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-04T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

