<?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: why it does not work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741500#M231795</link>
    <description>&lt;PRE class="language-sas"&gt;&lt;CODE&gt;options validvarname=any;
libname apple 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';
proc means data = apple.'Permanent$'n mean;
var wage;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;message in log:&lt;/P&gt;
&lt;P&gt;39 options validvarname=any;&lt;BR /&gt;40 libname apple xlsx 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';&lt;BR /&gt;ERROR: Invalid physical name for library APPLE.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;41 proc means data = apple.'Permanent$'n mean;&lt;BR /&gt;ERROR: Libref APPLE is not assigned.&lt;BR /&gt;42 var wage;&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;43 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 16:15:52 GMT</pubDate>
    <dc:creator>tianerhu</dc:creator>
    <dc:date>2021-05-14T16:15:52Z</dc:date>
    <item>
      <title>why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741476#M231782</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621006011069.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59428i34D7168011FEED93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1621006011069.png" alt="tianerhu_0-1621006011069.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;
libname apple 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';
proc means data = apple.'Permanent$'n mean;
var wage;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;message in log:&lt;/P&gt;
&lt;P&gt;39 options validvarname=any;&lt;BR /&gt;40 libname apple xlsx 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';&lt;BR /&gt;ERROR: Invalid physical name for library APPLE.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;41 proc means data = apple.'Permanent$'n mean;&lt;BR /&gt;ERROR: Libref APPLE is not assigned.&lt;BR /&gt;42 var wage;&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;43 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741476#M231782</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741480#M231785</link>
      <description>&lt;PRE&gt;40 libname apple xlsx 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';
ERROR: Invalid physical name for library APPLE.
ERROR: Error in the LIBNAME statement.&lt;/PRE&gt;
&lt;P&gt;The file does not exist. You have used the wrong file name or folder name (or both).&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741480#M231785</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-14T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741483#M231787</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621006723412.png" style="width: 724px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59429i1E2DE272993C169D/image-dimensions/724x407?v=v2" width="724" height="407" role="button" title="tianerhu_0-1621006723412.png" alt="tianerhu_0-1621006723412.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741483#M231787</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T15:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741487#M231788</link>
      <description>&lt;P&gt;You screen capture is too small to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, for .XLS files, I think you need to use the EXCEL engine and not the XLSX engine.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741487#M231788</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-14T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741491#M231791</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621007127481.png" style="width: 705px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59433iFAE3A6C6D9D8781D/image-dimensions/705x251?v=v2" width="705" height="251" role="button" title="tianerhu_0-1621007127481.png" alt="tianerhu_0-1621007127481.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The excel engine doesn't work .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741491#M231791</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T15:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741492#M231792</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You screen capture is too small to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, for .XLS files, I think you need to use the EXCEL engine and not the XLSX engine.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And a license for SAS/Access Interface to PC File formats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you run this code:&lt;/P&gt;
&lt;PRE&gt;Proc setinit;
run;&lt;/PRE&gt;
&lt;P&gt;And the LOG does not show something similar to&lt;/P&gt;
&lt;PRE&gt;---SAS/ACCESS Interface to PC Files
&lt;/PRE&gt;
&lt;P&gt;then you do not have a license and need one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741492#M231792</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-14T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741495#M231793</link>
      <description>&lt;P&gt;but the context in the book do not tell&amp;nbsp; like things&amp;nbsp; about SAS/PC format file ?&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741495#M231793</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741498#M231794</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268447"&gt;@tianerhu&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="tianerhu_0-1621007127481.png" style="width: 705px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59433iFAE3A6C6D9D8781D/image-dimensions/705x251?v=v2" width="705" height="251" role="button" title="tianerhu_0-1621007127481.png" alt="tianerhu_0-1621007127481.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The excel engine doesn't work .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Saying it "doesn't work" is not helpful. Show us the LOG (including the actual code and any ERROR messages) you are using that doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741498#M231794</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-14T15:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741500#M231795</link>
      <description>&lt;PRE class="language-sas"&gt;&lt;CODE&gt;options validvarname=any;
libname apple 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';
proc means data = apple.'Permanent$'n mean;
var wage;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;message in log:&lt;/P&gt;
&lt;P&gt;39 options validvarname=any;&lt;BR /&gt;40 libname apple xlsx 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';&lt;BR /&gt;ERROR: Invalid physical name for library APPLE.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;41 proc means data = apple.'Permanent$'n mean;&lt;BR /&gt;ERROR: Libref APPLE is not assigned.&lt;BR /&gt;42 var wage;&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;43 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741500#M231795</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T16:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741503#M231796</link>
      <description>&lt;P&gt;You left out the ENGINE name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname apple excel 'C:\Users\liaodong\Documents\My SAS Files\Wages.xls';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 May 2021 16:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741503#M231796</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-14T16:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741505#M231797</link>
      <description>&lt;P&gt;If you have SAS/ACCESS Interface to PC Files, then you can use the IMPORT procedure to import Microsoft Excel files in the Windows and UNIX operating environments.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741505#M231797</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741506#M231798</link>
      <description>&lt;P&gt;I have try it , doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741506#M231798</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741507#M231799</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268447"&gt;@tianerhu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have try it , doesn't work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I stated before (and I shouldn't have to ask multiple times), SHOW US THE LOG.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741507#M231799</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-14T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741509#M231800</link>
      <description>&lt;P&gt;Which version of SAS are you using? SAS University Edition requires files to be in the shared folder set up when installed and does not use Windows file syntax because it runs in a virtual machine using UNIX/Linux file syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are connecting to server then the server does not see your local hard drive and the file needs to be moved to where the server can see it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If using SAS On Demand For Academics that is a server version and needs to have the file uploaded to be used.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741509#M231800</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-14T16:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741519#M231803</link>
      <description>&lt;P&gt;How do you use SAS?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;complete local SAS installation, either through Enterprise Guide or Display Manager&lt;/LI&gt;
&lt;LI&gt;server-based SAS, with Enterprise Guide (and a connection profile) or SAS Studio&lt;/LI&gt;
&lt;LI&gt;University Edition&lt;/LI&gt;
&lt;LI&gt;On Demand for Academics&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note that only the first method will have access to your C: drive; UE will need the file to be stored in the shared folder, and On Demand and client/server need you to copy the file to the server first.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 17:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741519#M231803</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-14T17:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741548#M231812</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 20:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741548#M231812</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T20:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741587#M231829</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 23:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741587#M231829</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T23:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741588#M231830</link>
      <description>&lt;P&gt;Finally , I find the reason. Because the xls file which is 32 bit is not compatible with SAS which is 64 bit .&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 23:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-it-does-not-work/m-p/741588#M231830</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-14T23:50:21Z</dc:date>
    </item>
  </channel>
</rss>

