<?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: Can we append Excel(.xslb) file into .sas7bdat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851500#M336560</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437573"&gt;@qwerty12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can we append Excel(.xlsb) file into .sas7bdat&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;These are two totally different file formats from different vendors - so no, certainly not directly without conversion from the one to the other format.&lt;/P&gt;
&lt;P&gt;If you can read your .xlsb data into a SAS table (.sas7bdat) then you can append this SAS table to an already existing SAS table IF they share the same columns.&lt;/P&gt;
&lt;P&gt;Reading an Excel sheet directly into SAS also always has the issue that you can't fully control the resulting output table - column type and attributes. If you want to implement something repeatable then additional measure are required - and there have already been many Q&amp;amp;A in this forum around this topic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally use a .xlsx file and not .xlsb&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-xlsb-SAS-EG-7-1-64-bits/td-p/351501" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-xlsb-SAS-EG-7-1-64-bits/td-p/351501&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acpcref/n0msy4hy1so0ren1acm90iijxn8j.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acpcref/n0msy4hy1so0ren1acm90iijxn8j.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 08:51:28 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2022-12-29T08:51:28Z</dc:date>
    <item>
      <title>Can we append Excel(.xslx) file into .sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851487#M336552</link>
      <description>&lt;P&gt;Can we append Excel(.xlsx) file into .sas7bdat&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 09:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851487#M336552</guid>
      <dc:creator>qwerty12</dc:creator>
      <dc:date>2022-12-29T09:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can we append Excel(.xslb) file into .sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851500#M336560</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437573"&gt;@qwerty12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can we append Excel(.xlsb) file into .sas7bdat&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;These are two totally different file formats from different vendors - so no, certainly not directly without conversion from the one to the other format.&lt;/P&gt;
&lt;P&gt;If you can read your .xlsb data into a SAS table (.sas7bdat) then you can append this SAS table to an already existing SAS table IF they share the same columns.&lt;/P&gt;
&lt;P&gt;Reading an Excel sheet directly into SAS also always has the issue that you can't fully control the resulting output table - column type and attributes. If you want to implement something repeatable then additional measure are required - and there have already been many Q&amp;amp;A in this forum around this topic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally use a .xlsx file and not .xlsb&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-xlsb-SAS-EG-7-1-64-bits/td-p/351501" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-xlsb-SAS-EG-7-1-64-bits/td-p/351501&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acpcref/n0msy4hy1so0ren1acm90iijxn8j.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acpcref/n0msy4hy1so0ren1acm90iijxn8j.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 08:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851500#M336560</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-12-29T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we append Excel(.xslx) file into .sas7bdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851541#M336583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437573"&gt;@qwerty12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do that with xlsx files, because the SAS XLSX engine lets you see an xlsx file as a library with the induvidual sheets as members. I don't think it works with xlsb-files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But - as explained by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; - it is two very different file systems, and you might run into all sorts of trouble with both variable names and sheet names depending on your validname settings and interpretation of variable content, so I don't think is is a good idea. It is better to get your data into SAS, so you can verify results, rename variables, apply formats etc, before you try to append the contents to an existing data set.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-append-Excel-xslx-file-into-sas7bdat/m-p/851541#M336583</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2022-12-29T18:29:20Z</dc:date>
    </item>
  </channel>
</rss>

