<?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: Excel libname dbsastype error Invalid option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883489#M349076</link>
    <description>&lt;P&gt;Unfortunately, as Reeza mentioned, the XLSX engine does not have support for the DBSASTYPE option.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please&amp;nbsp; upvote this ballot item, where I suggested this improvement:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/Add-DBSASTYPE-or-similar-option-to-XLSX-engine-to-force-variable/idi-p/453938" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/Add-DBSASTYPE-or-similar-option-to-XLSX-engine-to-force-variable/idi-p/453938&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did notice on LinkedIN a couple weeks ago that Henry Feldman is 'open to work' after departing ATT.&amp;nbsp; Perhaps SAS will be able to hire him back... I wouldn't think it would be hard to add support for DBSASTYPE.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2023 21:14:45 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-07-04T21:14:45Z</dc:date>
    <item>
      <title>Excel libname dbsastype error Invalid option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883466#M349065</link>
      <description>&lt;P&gt;I am trying to set the data types when reading a spreadsheet using the libname XLSX enging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sucssful in reading the spreadsheet, however when I try to use the&amp;nbsp;DBSASTYPE SAS throws and error.&amp;nbsp; I am using SAS EG 8.3.&amp;nbsp; The facility_id appears in excel to be a column of numbers.&amp;nbsp; I am able to read it and convert it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is specific to using the dbSASTYPE functionality.&amp;nbsp; If I remove the dbSAStype, I can successfully read the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xl XLSX "/sasdata/airb_output01/dgear/cc_basel/my_file.xlsx" ;&lt;/P&gt;
&lt;P&gt;data cc_basel1;&lt;BR /&gt;set xl.GUI(DBSASTYPE=(FACILITY_ID='char(20)'));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results in:&lt;/P&gt;
&lt;P&gt;34 data cc_basel1;&lt;BR /&gt;35 set xl.GUI(DBSASTYPE=(FACILITY_ID='char(20)'));&lt;BR /&gt;_________&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-7: Invalid option name DBSASTYPE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something that must be installed?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 15:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883466#M349065</guid>
      <dc:creator>DebG</dc:creator>
      <dc:date>2023-07-04T15:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excel libname dbsastype error Invalid option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883470#M349068</link>
      <description>No, this option isn't enabled for the XLSX engine. As far as I know there's no way to specify the type 100% fool proof from an Excel file except by converting to CSV and reading that in.</description>
      <pubDate>Tue, 04 Jul 2023 16:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883470#M349068</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-07-04T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excel libname dbsastype error Invalid option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883489#M349076</link>
      <description>&lt;P&gt;Unfortunately, as Reeza mentioned, the XLSX engine does not have support for the DBSASTYPE option.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please&amp;nbsp; upvote this ballot item, where I suggested this improvement:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/Add-DBSASTYPE-or-similar-option-to-XLSX-engine-to-force-variable/idi-p/453938" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/Add-DBSASTYPE-or-similar-option-to-XLSX-engine-to-force-variable/idi-p/453938&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did notice on LinkedIN a couple weeks ago that Henry Feldman is 'open to work' after departing ATT.&amp;nbsp; Perhaps SAS will be able to hire him back... I wouldn't think it would be hard to add support for DBSASTYPE.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 21:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-libname-dbsastype-error-Invalid-option/m-p/883489#M349076</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-07-04T21:14:45Z</dc:date>
    </item>
  </channel>
</rss>

