<?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: Worksheet names in excel in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699382#M25615</link>
    <description>&lt;P&gt;I strongly suspect that the pathname to your Excel file is not correct.&lt;/P&gt;
&lt;P&gt;LIBNAME XLSX will not throw any messages if the file can't be found, as it can be used to create a new file. The file would then be created upon the first write to this library, and if the path can't be found, you'd get the ERROR then.&lt;/P&gt;
&lt;P&gt;Search for the file in your Folders navigation pane, right-click on it, and copy the path from the Properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UNIX (the operating system of SAS on Demand) is case sensitive, so you need to get the spelling of directory and file names right. If your file was named &lt;STRONG&gt;D&lt;/STRONG&gt;atasheet.xlsx, your LIBNAME won't find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS belay that.&lt;/P&gt;
&lt;P&gt;I see that you used 'cert' in your DATA step. Dataset and library names in SASHELP.VTABLE (and all other DICTIONARY tables that contain these columns) are always uppercase, so need to run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data out;
set sashelp.vtable;
where libname='CERT';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Nov 2020 07:52:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-11-17T07:52:23Z</dc:date>
    <item>
      <title>Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699369#M25610</link>
      <description>&lt;P&gt;How to get an excel worksheet name ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example I have a excel datasheet.xlsx having sheet1 name something so, how to find sheet1 , sheet2... sheetn names?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;my&lt;/STRONG&gt; &lt;STRONG&gt;prog&lt;/STRONG&gt; :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname cert xlsx "/home/u49388206/cert/excel/datasheet.xlsx";&lt;/P&gt;
&lt;P&gt;data out;&lt;BR /&gt;set sashelp.vtable;&lt;BR /&gt;where libname='cert';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;libname cert clear;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PFB log file&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;
&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         libname cert xlsx "/home/u49388206/cert/excel/datasheet.xlsx";
 NOTE: Libref CERT was successfully assigned as follows: 
       Engine:        XLSX 
       Physical Name: /home/u49388206/cert/excel/datasheet.xlsx
 74         
 75         data out;
 76         set sashelp.vtable;
 77         where libname='cert';
 78         run;
 
 NOTE: There were 0 observations read from the data set SASHELP.VTABLE.
       WHERE libname='cert';
 NOTE: The data set WORK.OUT has 0 observations and 41 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              5537.87k
       OS Memory           35752.00k
       Timestamp           11/17/2020 07:18:12 AM
       Step Count                        61  Switch Count  2
       Page Faults                       0
       Page Reclaims                     225
       Page Swaps                        0
       Voluntary Context Switches        13
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 79         libname cert clear;
 NOTE: Libref CERT has been deassigned.
 80         
 81         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 93         &lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Nov 2020 07:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699369#M25610</guid>
      <dc:creator>librasonali</dc:creator>
      <dc:date>2020-11-17T07:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699371#M25612</link>
      <description>&lt;P&gt;When a program does not work to your satisfaction (and especially when it throws ERRORs, WARNINGs or NOTEs you don't understand), posf the complete log from the offending step. Copy/paste the log text into a window opened with the &amp;lt;/&amp;gt; button.&lt;/P&gt;
&lt;P&gt;And supply more details. "Did not work" on its own tells us nothing.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 06:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699371#M25612</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-17T06:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699378#M25614</link>
      <description>thank-you !&lt;BR /&gt;i have updated my question</description>
      <pubDate>Tue, 17 Nov 2020 07:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699378#M25614</guid>
      <dc:creator>librasonali</dc:creator>
      <dc:date>2020-11-17T07:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699382#M25615</link>
      <description>&lt;P&gt;I strongly suspect that the pathname to your Excel file is not correct.&lt;/P&gt;
&lt;P&gt;LIBNAME XLSX will not throw any messages if the file can't be found, as it can be used to create a new file. The file would then be created upon the first write to this library, and if the path can't be found, you'd get the ERROR then.&lt;/P&gt;
&lt;P&gt;Search for the file in your Folders navigation pane, right-click on it, and copy the path from the Properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UNIX (the operating system of SAS on Demand) is case sensitive, so you need to get the spelling of directory and file names right. If your file was named &lt;STRONG&gt;D&lt;/STRONG&gt;atasheet.xlsx, your LIBNAME won't find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS belay that.&lt;/P&gt;
&lt;P&gt;I see that you used 'cert' in your DATA step. Dataset and library names in SASHELP.VTABLE (and all other DICTIONARY tables that contain these columns) are always uppercase, so need to run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data out;
set sashelp.vtable;
where libname='CERT';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Nov 2020 07:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699382#M25615</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-17T07:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699384#M25617</link>
      <description>&lt;P&gt;Afaik the values of libname in sashelp.vtable are almost always in upcase, so try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where libname='CERT';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Nov 2020 07:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699384#M25617</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-11-17T07:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699390#M25619</link>
      <description>&lt;P&gt;Even with VALIDMEMNAME=EXTEND and a name literal, the letters are converted to uppercase:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.'$Class'n;
set sashelp.class;
run;

data test;
set sashelp.vtable;
where libname = "WORK";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results in $CLASS on my University Edition.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 08:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/699390#M25619</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-17T08:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/700867#M25742</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Do we have alternative logic to find the worksheets name of a xslx sheet ? &lt;BR /&gt;( except the above I just mentioned) . IF you know then please share. Thanks in advance !</description>
      <pubDate>Mon, 23 Nov 2020 09:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/700867#M25742</guid>
      <dc:creator>librasonali</dc:creator>
      <dc:date>2020-11-23T09:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Worksheet names in excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/700869#M25743</link>
      <description>&lt;P&gt;You can query DICTIONARY.TABLES in PROC SQL (SASHELP.VTABLE is a SQL view to this table).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run PROC DATASETS and use ODS to redirect the directory listing in the output to a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All these need a successful LIBNAME to the Excel file to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since XLSX files are zip-compressed archives, you can open them with FILENAME ZIP and then read the contents, but that will be quite tedious compared to the above methods.&lt;/P&gt;
&lt;P&gt;Do a Google search for "sas directory listing of zip file" to find some examples.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 10:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Worksheet-names-in-excel/m-p/700869#M25743</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-23T10:09:53Z</dc:date>
    </item>
  </channel>
</rss>

