<?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: Import Excel with multiple sheet into SAS Viya in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955575#M373186</link>
    <description>&lt;P&gt;That means your sas don't have license of EXCEL engine. But you could try other engines: XLS XLSX:&lt;BR /&gt;&lt;BR /&gt;libname AB xls 'X:\datafile.xls' ;&lt;BR /&gt;libname AB xlsx 'X:\datafile.xls' ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc copy in=AB out=work noclone;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 01:17:07 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-01-09T01:17:07Z</dc:date>
    <item>
      <title>Import Excel with multiple sheet into SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955518#M373178</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used to use SAS EG to import excel with multiple sheets. It works very well. Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname AB excel 'X:\datafile.xls' ;&lt;BR /&gt;proc sql noprint ;&lt;BR /&gt;select cats( "AB.'", memname, "'n" ) into : xlfiles separated by ' '&lt;BR /&gt;from dictionary.members&lt;BR /&gt;where libname = 'AB'&lt;BR /&gt;order by memname ;&lt;BR /&gt;%put The workbook contains &amp;amp;sqlobs worksheets with data ;&lt;BR /&gt;quit ;&lt;BR /&gt;data together ;&lt;BR /&gt;set &amp;amp;xlfiles ;&lt;BR /&gt;run ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I tried to used it in my SAS Viya, it gives me this error:&lt;/P&gt;
&lt;DIV id="sasLogError1_1736360266578" class="sasError"&gt;ERROR: The EXCEL engine cannot be found.&lt;/DIV&gt;
&lt;DIV id="sasLogError2_1736360266578" class="sasError"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;How can I import excel with multiple sheet into SAS Viya?&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Thank you.&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_13103" class="sasLog"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 18:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955518#M373178</guid>
      <dc:creator>GingerJJ</dc:creator>
      <dc:date>2025-01-08T18:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import Excel with multiple sheet into SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955545#M373182</link>
      <description>&lt;P&gt;The EXCEL engine is technology that works with Windows, but SAS Viya runs in Linux. The XLS file type stopped being the default for Excel in 2003 - that's some&amp;nbsp;seriously old technology! Since then, the Excel default file type has been XLSX.&amp;nbsp;If you can save the Excel file as in XLSX format, you can use the XLSX engine in your LIBNAME statement like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname AB xlsx '~/&lt;SPAN&gt;datafile&lt;/SPAN&gt;.xlsx' ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, SAS Viya won't have access to Windows drives - you'll have to upload the XLSX file to a directory on Viya Linux environment. The above code assumes you loaded the file into your home directory.&amp;nbsp;&amp;nbsp;After that, the rest of your code should work just fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this isn't possible, your system may have access to a SAS PC Files server. If so, you could use&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_058/acpcref/p1chnlvg9fa630n1s13jp7y9ocbw.htm" target="_self"&gt;SAS PCFILES&lt;/A&gt;&amp;nbsp;syntax for your LIBNAME statement, and that should work, too.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 21:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955545#M373182</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2025-01-08T21:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import Excel with multiple sheet into SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955575#M373186</link>
      <description>&lt;P&gt;That means your sas don't have license of EXCEL engine. But you could try other engines: XLS XLSX:&lt;BR /&gt;&lt;BR /&gt;libname AB xls 'X:\datafile.xls' ;&lt;BR /&gt;libname AB xlsx 'X:\datafile.xls' ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc copy in=AB out=work noclone;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 01:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955575#M373186</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-09T01:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import Excel with multiple sheet into SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955629#M373199</link>
      <description>&lt;P&gt;Just to clarify, all flavors of SAS Viya installations include a SAS/ACCESS to PC File Formats.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 14:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Excel-with-multiple-sheet-into-SAS-Viya/m-p/955629#M373199</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2025-01-09T14:43:29Z</dc:date>
    </item>
  </channel>
</rss>

