<?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: Removing variables names from output. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254885#M268878</link>
    <description>&lt;P&gt;Unfortunately the only way I know how is DDE. Is that an option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, since you obviously have a template of some kind, perhaps create a new range that contains the full export and then link first range back to named range - minus the headers.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2016 04:11:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-07T04:11:50Z</dc:date>
    <item>
      <title>Removing variables names from Excel output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254877#M268875</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to export a dataset to a named range in excel. Everything is working fine EXCEPT it also outputs the variable names/headers, which I don't need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anyway to just export the data without the variable names/headers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Joshua &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 19:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254877#M268875</guid>
      <dc:creator>joshua_james</dc:creator>
      <dc:date>2016-03-07T19:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254883#M268876</link>
      <description>&lt;P&gt;How are you exporting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's the putnames=no option, but I think that's valid only for text files.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 02:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254883#M268876</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-07T02:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254884#M268877</link>
      <description>&lt;P&gt;I have imported data from one excel workbook and I'm exporting it to a named range in another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what my code looks like for the export portion -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; xls &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;excel&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'H:\TEST.xlsm'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;datasets&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lib&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = xls &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nolist&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;delete&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; salestest ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; xls.salestest ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; THISMONTH ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; xls &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;clear&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 02:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254884#M268877</guid>
      <dc:creator>joshua_james</dc:creator>
      <dc:date>2016-03-07T02:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254885#M268878</link>
      <description>&lt;P&gt;Unfortunately the only way I know how is DDE. Is that an option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, since you obviously have a template of some kind, perhaps create a new range that contains the full export and then link first range back to named range - minus the headers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 04:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254885#M268878</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-07T04:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254887#M268879</link>
      <description>&lt;P&gt;1)&lt;/P&gt;
&lt;P&gt;proc export data=sashelp.class outfile= 'c:\temp\xyz.xls' dbms=xls replace ;&lt;BR /&gt;putnames=no;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&lt;/P&gt;
&lt;P&gt;ods excel file=.........;&lt;/P&gt;
&lt;P&gt;proc report data=sashelp.class &lt;STRONG&gt;noheader&lt;/STRONG&gt; nowd;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 04:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254887#M268879</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-07T04:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254900#M268880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One alternative, seeing as how you are using Excel specific functionality (hopefully not for anyt other purpose!), is to do the work in Excel itself. &amp;nbsp;From SAS you can export a simple CSV file. &amp;nbsp;In your main file (or another if you don't want macros in your main file), create a small VBA macro which opens the CSV, then copies the revleant data to your named region. &amp;nbsp;The benefits of this are that you don't have to try to control Excel from SAS - yes you have DDE but it is decades old and no longer supported, and you have th full functionality of Excel to assign regions, copy various bits etc. &amp;nbsp;Use the right tool for the job.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 09:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/254900#M268880</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-07T09:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/256134#M268881</link>
      <description>&lt;P&gt;Please consider exporting your data to excel as text, since excel may try to interprete your data and put a format on it, which would lead to data modification... I get shivers in my spine just thinking about it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.excelxp file="C:\workbook.xml" style=statistical
   options(frozen_headers='yes' sheet_interval='none' sheet_name="cars" autofilter='all'  autofit_height='yes');
 
   PROC REPORT data=sashelp.cars nowindows
      style(report)=[font=(Arial, 8pt) protectspecialchars=on]
      style(header)=[font=(Arial, 10pt, bold) just=center protectspecialchars=on]
      style(column)=[font=(Arial, 8pt) protectspecialchars=on];
      COLUMN MAKE MODEL TYPE ORIGIN DRIVETRAIN MSRP INVOICE ENGINESIZE CYLINDERS HORSEPOWER MPG_CITY MPG_HIGHWAY WEIGHT WHEELBASE LENGTH;
 
      DEFINE MAKE / display style=[just=l cellwidth=2.745cm tagattr='type:String format:Text'];
      DEFINE MODEL / display style=[just=l cellwidth=7cm tagattr='type:String format:Text'];
      DEFINE TYPE / display style=[just=l cellwidth=1.882cm tagattr='type:String format:Text'];
      DEFINE ORIGIN / display style=[just=l cellwidth=2.191cm tagattr='type:String format:Text'];
      DEFINE DRIVETRAIN / display style=[just=l cellwidth=2.818cm tagattr='type:String format:Text'];
      DEFINE MSRP / display style=[just=l cellwidth=1.882cm tagattr='type:String format:Text'];
      DEFINE INVOICE / display style=[just=l cellwidth=2.473cm tagattr='type:String format:Text'];
      DEFINE ENGINESIZE / display style=[just=l cellwidth=4.227cm tagattr='type:String format:Text'];
      DEFINE CYLINDERS / display style=[just=l cellwidth=2.536cm tagattr='type:String format:Text'];
      DEFINE HORSEPOWER / display style=[just=l cellwidth=2.818cm tagattr='type:String format:Text'];
      DEFINE MPG_CITY / display style=[just=l cellwidth=2.818cm tagattr='type:String format:Text'];
      DEFINE MPG_HIGHWAY / display style=[just=l cellwidth=3.664cm tagattr='type:String format:Text'];
      DEFINE WEIGHT / display style=[just=l cellwidth=3.382cm tagattr='type:String format:Text'];
      DEFINE WHEELBASE / display style=[just=l cellwidth=3.945cm tagattr='type:String format:Text'];
      DEFINE LENGTH / display style=[just=l cellwidth=3.1cm tagattr='type:String format:Text'];
   RUN;
 
ods tagsets.ExcelXP CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/256134#M268881</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2016-03-11T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/256174#M268882</link>
      <description>&lt;P&gt;Unfortunately ods tagsets.excelxp neither creates Excel files, nor does it insert data into an existing Excel file. &amp;nbsp;tagsets.excelxp as with any tagset, creates XML output, which can be interpreted by Excel and rendered as a spreadsheet, however is a native Excel file. &amp;nbsp;And due to this also, you can't paste data to named ranges &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/256174#M268882</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-11T17:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing variables names from output.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/256516#M268883</link>
      <description>&lt;P&gt;If you do not needed to write to a named range, you could run a vbs macro to convert the xml file to a native xlsx file (autmatically from SAS) and the job is done.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 09:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-variables-names-from-Excel-output/m-p/256516#M268883</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2016-03-14T09:52:51Z</dc:date>
    </item>
  </channel>
</rss>

