<?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: How to connect with the excel using &amp;quot;libname&amp;quot; statement..? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591856#M169636</link>
    <description>&lt;P&gt;You appear to be connecting to SAS using the SAS/Studio application.&amp;nbsp; Make sure that the XLSX file you want to read is on the machine that is actually running SAS, it might a different machine (physically or logically) than the machine where you are running the browser that is connecting to SAS/Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you issue that LIBNAME statement and the file does not exist then SAS will create an empty file so you can copy data into it.&amp;nbsp; That would explain why it appears to be empty.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 14:30:04 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-09-26T14:30:04Z</dc:date>
    <item>
      <title>How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591350#M169368</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can someone please advise me that how i can connect with the excel using "Libname" statement as tried this in my crome and internet explores browser but nothing happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;than&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname y xlsx "C:\Users\Hp\Desktop\Cost_Basis_Project\Market_Price_Sheet.xlsx";

proc contents data=x._all_ nods;

run;
proc print data=x.market;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ks.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (11).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32717iC1732FEA2673CBBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (11).png" alt="Screenshot (11).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591350#M169368</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-25T02:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591353#M169370</link>
      <description>&lt;P&gt;Please post your SAS log.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591353#M169370</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-25T02:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591358#M169373</link>
      <description>&lt;P&gt;here i just run the libname statement ....&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (13).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32719iBEF806D79CAF1C2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (13).png" alt="Screenshot (13).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591358#M169373</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-25T02:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591360#M169375</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290695"&gt;@varmalh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like the Libname works. What does the Proc Contents return?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;....and looking at the code you've posted:&lt;/P&gt;
&lt;P&gt;Wouldn't you need to use libref &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;/FONT&gt; instead of &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;proc contents data=&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Y&lt;/FONT&gt;&lt;/STRONG&gt;._all_ nods;&lt;/P&gt;
&lt;P&gt;run;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591360#M169375</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-25T02:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591362#M169376</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;i don't think libname worked as u can see there is no sheet mention on the left hand side of libraries..!!&lt;/P&gt;&lt;P&gt;please also see the result of Proc content..!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (17).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32720iD1E73ACA59751A6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (17).png" alt="Screenshot (17).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591362#M169376</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-25T02:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591363#M169377</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; i used libreg Y and X both just to be sure but nothing positive .....!!</description>
      <pubDate>Wed, 25 Sep 2019 02:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591363#M169377</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-25T02:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591364#M169378</link>
      <description>&lt;P&gt;The libname doesn't return an error so the file appears to exist.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you don't have the file opened via Excel when you run your code (also I believe the libname would throw an error in such a case).&lt;/P&gt;
&lt;P&gt;How does the data in your Excel actually look like. Does data start in cell A1 or is it in a different structure?&lt;/P&gt;
&lt;P&gt;Can you share your Excel with us (as an attachment here)? Many people won't open Excels - but some do...&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 02:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591364#M169378</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-25T02:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591378#M169385</link>
      <description>&lt;P&gt;Please try the EXCEL engine on your LIBNAME rather than XLSX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also don't forget to refresh your server list after applying the LIBNAME. Tables / tabs won't show until you do this.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 04:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591378#M169385</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-25T04:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591735#M169571</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;i noticed one thing that i could not able to see my system folder i don't know why....!&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 (20)_LI.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32738i1C4C9446B99429AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (20)_LI.jpg" alt="Screenshot (20)_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 23:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591735#M169571</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-25T23:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591740#M169573</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290695"&gt;@varmalh&lt;/a&gt;&amp;nbsp; - Run PROC SETINIT and PROC PRODUCT_STATUS to confirm if you have SAS/ACCESS to PC Files - Excel LIBNAMES of any form won't work if you don't have the software:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit;
run;

proc product_status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 01:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591740#M169573</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-26T01:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect with the excel using "libname" statement..?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591856#M169636</link>
      <description>&lt;P&gt;You appear to be connecting to SAS using the SAS/Studio application.&amp;nbsp; Make sure that the XLSX file you want to read is on the machine that is actually running SAS, it might a different machine (physically or logically) than the machine where you are running the browser that is connecting to SAS/Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you issue that LIBNAME statement and the file does not exist then SAS will create an empty file so you can copy data into it.&amp;nbsp; That would explain why it appears to be empty.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-with-the-excel-using-quot-libname-quot-statement/m-p/591856#M169636</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-26T14:30:04Z</dc:date>
    </item>
  </channel>
</rss>

