<?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: XLSX Library issues in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806203#M33531</link>
    <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Enterprise guide 7.1. Even after successfully creating the active library, the excel sheets do not appear in the library that I have created.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 07:57:38 GMT</pubDate>
    <dc:creator>Gordonmolapo</dc:creator>
    <dc:date>2022-04-06T07:57:38Z</dc:date>
    <item>
      <title>XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665522#M22916</link>
      <description>&lt;P&gt;I've created an excel files library running this command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options validvarname=v7;&lt;/P&gt;&lt;P&gt;libname xlstorm xlsx '/folders/myfolders/storm.xlsx';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i can't seem to find the worksheet in the library. so how do i do this so i can access the excel worksheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (2)_LI.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46727i1FE560CE8351015E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot (2)_LI.jpg" alt="Screenshot (2)_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 11:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665522#M22916</guid>
      <dc:creator>Abastaki</dc:creator>
      <dc:date>2020-06-27T11:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665525#M22918</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335347"&gt;@Abastaki&lt;/a&gt;&lt;BR /&gt;Please look at the Error message in the log (red cross)&lt;BR /&gt;It seems that the path of the Excel file is not valid. To get the right one, please right click on the file name in the File and Folder part on the left of your screen, and select Properties. You will then be able to copy-paste the path.&lt;BR /&gt;Best,</description>
      <pubDate>Sat, 27 Jun 2020 11:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665525#M22918</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-06-27T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665526#M22919</link>
      <description>&lt;P&gt;There's no error message. And i've tried the path you mentioned before, didn't work either.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 12:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665526#M22919</guid>
      <dc:creator>Abastaki</dc:creator>
      <dc:date>2020-06-27T12:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665527#M22920</link>
      <description>&lt;P&gt;Please post the log&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 12:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665527#M22920</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-06-27T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665528#M22921</link>
      <description>&lt;P&gt;Since libname xlsx can be used to create a new Excel file, the success of assigning the libname does not mean that SAS has found the file; if it did not find the file, it will create it as soon as you write to the library.&lt;/P&gt;
&lt;P&gt;So you must first look in your Server Files and Folders section first if the Excel file is actually in myfolders, and take the spelling from there (for the UNIX system of UE, which is case sensitive, Storm.xlsx and storm.xlsx are different files).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS if in doubt, show us a screenshot of the open Server Files and Folders section where the Excel file is visible.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 12:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665528#M22921</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-27T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665545#M22922</link>
      <description>&lt;P&gt;Follow the instructions from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp; 2015 Blog&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to copy the data/worksheet into a WORK table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 17:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/665545#M22922</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2020-06-27T17:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806069#M33522</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to read the storm's excel workbook from the library I have created, however, I am unable to access the file.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806069#M33522</guid>
      <dc:creator>Gordonmolapo</dc:creator>
      <dc:date>2022-04-05T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806073#M33523</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gordonmolapo_0-1649169010950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70127iCD99B295D4D6BEB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gordonmolapo_0-1649169010950.png" alt="Gordonmolapo_0-1649169010950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached is the log message after creating the active library.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806073#M33523</guid>
      <dc:creator>Gordonmolapo</dc:creator>
      <dc:date>2022-04-05T14:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806099#M33526</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422011"&gt;@Gordonmolapo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gordonmolapo_0-1649169010950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70127iCD99B295D4D6BEB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gordonmolapo_0-1649169010950.png" alt="Gordonmolapo_0-1649169010950.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Attached is the log message after creating the active library.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is no problem. The library reference was successfully created, now use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, post your logs by just copy/pasting them into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The "little running man" right next to it is for posting SAS code (provides coloring similar to the SAS Enhanced Editor).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806099#M33526</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-05T16:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806203#M33531</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Enterprise guide 7.1. Even after successfully creating the active library, the excel sheets do not appear in the library that I have created.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 07:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806203#M33531</guid>
      <dc:creator>Gordonmolapo</dc:creator>
      <dc:date>2022-04-06T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806205#M33532</link>
      <description>&lt;P&gt;What are the names of your sheets? If they do not follow the rules for valid SAS names, you will have to use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validmemname=extend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806205#M33532</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-06T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806213#M33535</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gordonmolapo_0-1649234695788.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70149i3D4EF04517CED60F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gordonmolapo_0-1649234695788.png" alt="Gordonmolapo_0-1649234695788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sheet names&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806213#M33535</guid>
      <dc:creator>Gordonmolapo</dc:creator>
      <dc:date>2022-04-06T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806216#M33538</link>
      <description>I used the code suggested but SAS is only reading the first sheet and not the other sheets.&lt;BR /&gt;&lt;BR /&gt;The solution to my initial problem was regarding the path I was using. I used the network path.</description>
      <pubDate>Wed, 06 Apr 2022 08:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806216#M33538</guid>
      <dc:creator>Gordonmolapo</dc:creator>
      <dc:date>2022-04-06T08:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806230#M33542</link>
      <description>&lt;P&gt;Please post the code you used to actually read that first sheet.&lt;/P&gt;
&lt;P&gt;If you want to read all your sheets in one procedure, use PROC COPY:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy
  in=xstorms
  out=work
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 09:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806230#M33542</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-06T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806270#M33547</link>
      <description>&lt;PRE&gt;libname xstorms '\\HO125489-T\Users\LebohangM\Documents\EPG194\data';

proc import datafile='\\HO125489-T\Users\LebohangM\Documents\EPG194\data\storm.xlsx' 
dbms=xlsx out=xstorms.storm replace;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806270#M33547</guid>
      <dc:creator>Gordonmolapo</dc:creator>
      <dc:date>2022-04-06T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806278#M33548</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422011"&gt;@Gordonmolapo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;libname xstorms '\\HO125489-T\Users\LebohangM\Documents\EPG194\data';

proc import datafile='\\HO125489-T\Users\LebohangM\Documents\EPG194\data\storm.xlsx' 
dbms=xlsx out=xstorms.storm replace;
run;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you do not tell PROC IMPORT which worksheet to import from the workbook it will import the first sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806278#M33548</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-06T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806318#M33549</link>
      <description>&lt;P&gt;PROC IMPORT without a sheet name will only import the first sheet. IMPORT creates &lt;EM&gt;one&lt;/EM&gt; dataset, so it has to select &lt;EM&gt;one&lt;/EM&gt; sheet, and if you do not tell it which, it defaults to the first.&lt;/P&gt;
&lt;P&gt;If you want to import multiple sheets, your best option is PROC COPY from a libname you defined with LIBNAME XLSX.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806318#M33549</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-06T15:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: XLSX Library issues</title>
      <link>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806393#M33558</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;I suggest you go back to the Programming 1 class and review the material on using PROC IMPORT. When you are importing from a multi-sheet workbook, PROC IMPORT expects the OUT= to be a SAS dataset. The Excel Workbook is the equivalent of a library containing multiple tables (one table for each sheet). So a single SAS dataset is all that the OUT= option is going to create. &lt;BR /&gt;Are you working in Lesson 2? There is a demo in Lesson 2 that you should revisit, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1649275388152.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70177i59EC76D9B414F50C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1649275388152.png" alt="Cynthia_sas_0-1649275388152.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In this demo, the instructor uses the XLSX LIBNAME engine to run a PROC CONTENTS on the entire workbook and then, after reviewing the PROC CONTENTS output, she shows how to point PROC CONTENTS to a single sheet in the workbook --also using the LIBNAME engine. PROC IMPORT is NOT used in this demo, at all. &lt;BR /&gt;In Lesson 2, PROC IMPORT is used to read a tab delimited file and a CSV file -- but you cannot use the XLSX engine to read either of those types of "raw" or "unstructured" data files.&lt;BR /&gt;Please clarify exactly in the course where you are working by providing the title of the Lesson, demo, activity or practice you're working in. Most of the activities and practices have code that you can reveal when you're following the instructions. Usually you can compare your code to the solution to see what you've missed. If you're trying to repeat the demo in Lesson 2, you're not following the demo steps.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 20:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/XLSX-Library-issues/m-p/806393#M33558</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-04-06T20:04:14Z</dc:date>
    </item>
  </channel>
</rss>

