<?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 libname xlsx engine options in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364766#M18777</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using the new xlsx engine to generate my spreadsheets.&amp;nbsp; Works pretty darn good.&amp;nbsp; However, I have one example where I want sas to generate the column headers using the labels in the sas dataset.&amp;nbsp; This is running on a Linux box, with 9.4,&lt;/P&gt;&lt;P&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M3)&lt;/P&gt;&lt;P&gt;Linux LIN X64 2.6.32-642.13.1.el6.x86_64 #1 SMP Wed Nov 23 16:03:01 EST 2016 x86_64 Red Hat Enterprise Linux Server release 6.8&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Santiago)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;%let myfile = Prod_code_XREF_Bus_Cnsmr_&amp;amp;mmmyyyy..xlsx;&lt;BR /&gt;%let mytarget = &amp;amp;folder./&amp;amp;myfile.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xl XLSX "&amp;amp;mytarget";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xl.Sheet1;&lt;BR /&gt;&amp;nbsp; set prodhier;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xl clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option that can be set to say "use the var labels for column names" as you could with proc export?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 21:33:37 GMT</pubDate>
    <dc:creator>bassrick</dc:creator>
    <dc:date>2017-06-06T21:33:37Z</dc:date>
    <item>
      <title>libname xlsx engine options</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364766#M18777</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using the new xlsx engine to generate my spreadsheets.&amp;nbsp; Works pretty darn good.&amp;nbsp; However, I have one example where I want sas to generate the column headers using the labels in the sas dataset.&amp;nbsp; This is running on a Linux box, with 9.4,&lt;/P&gt;&lt;P&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M3)&lt;/P&gt;&lt;P&gt;Linux LIN X64 2.6.32-642.13.1.el6.x86_64 #1 SMP Wed Nov 23 16:03:01 EST 2016 x86_64 Red Hat Enterprise Linux Server release 6.8&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Santiago)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;%let myfile = Prod_code_XREF_Bus_Cnsmr_&amp;amp;mmmyyyy..xlsx;&lt;BR /&gt;%let mytarget = &amp;amp;folder./&amp;amp;myfile.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xl XLSX "&amp;amp;mytarget";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xl.Sheet1;&lt;BR /&gt;&amp;nbsp; set prodhier;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xl clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option that can be set to say "use the var labels for column names" as you could with proc export?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 21:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364766#M18777</guid>
      <dc:creator>bassrick</dc:creator>
      <dc:date>2017-06-06T21:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx engine options</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364789#M18778</link>
      <description>&lt;P&gt;Honestly, I don't know. However, you can use the LABEL option with proc export using the DBMS=XLSX option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see:&amp;nbsp;chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/69731/PDF/default/acpcref.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/69731/PDF/default/acpcref.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 22:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364789#M18778</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-06T22:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: libname xlsx engine options</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364803#M18779</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The usual option is DBLABEL which doesn't appear to work with XLSX engine as far as I can see.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used to use this with EXCELCS and EXCEL via LIBNAME.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p1aksmchxr4bekn1bdxjk4isnvna.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#p1aksmchxr4bekn1bdxjk4isnvna.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 00:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/libname-xlsx-engine-options/m-p/364803#M18779</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-07T00:52:00Z</dc:date>
    </item>
  </channel>
</rss>

