<?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 ( about using a xls file as sas data set with engine in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628613#M77569</link>
    <description>When programming you have to first ensure that the prior code works. So currently you're trying to set up a libname to an Excel file. It appears that doesn't work. What errors do you get, post your full log from your LIBNAME statement. &lt;BR /&gt;&lt;BR /&gt;Either you don't have the correct license, your code is wrong, or you need PCFILES because you have a mismatch between 32bit and 64 bit system. &lt;BR /&gt;&lt;BR /&gt;Once the libname to the Excel file is set up, you can reference the different tables in the workbook but you need to know the names. PROC DATASETS is a good way to explore that to find out what names you need to use. Generally, you can use the worksheet names in the Excel workbook as data set names, but named ranges can also be a data set name and possibly Excel Tables as well these days. Also, do you have to work with an xls file or can it be an XLSX file? If you can use XLSX you have more modern options, XLS was retired about a decade ago.</description>
    <pubDate>Mon, 02 Mar 2020 00:10:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-03-02T00:10:18Z</dc:date>
    <item>
      <title>why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628601#M77562</link>
      <description>&lt;PRE&gt;libname apple  'C:\Users\Documents\Sales.xls';
proc print  data = apple.Sales;
   where EmpID = '9888' or EmpID = '0177';

run;


&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628601#M77562</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-01T23:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628604#M77564</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;PRE&gt;libname apple  'C:\Users\Documents\Sales.xls';
proc print  data = apple.Sales;
   where EmpID = '9888' or EmpID = '0177';

run;


&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what is your problem? If you get ERRORs or WARNINGs, post the log. Otherwise describe what does not work as intended.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628604#M77564</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-01T23:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628606#M77565</link>
      <description>&lt;P&gt;Try adding the an engine to your LIBNAME:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname apple XLS 'C:\Users\Documents\Sales.xls';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your spreadsheet need to to contain a tab called Sales as well.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628606#M77565</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-01T23:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628607#M77566</link>
      <description>&lt;P&gt;thank you for your advice, sir , following is the information from log&lt;/P&gt;&lt;P&gt;2023&lt;BR /&gt;2024 libname apple 'C:\Users\Documents\Sales.xls';&lt;BR /&gt;ERROR: Connect: Class not registered&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;2025&lt;BR /&gt;2026 proc print data = apple.Sales;&lt;BR /&gt;ERROR: Libref APPLE is not assigned.&lt;BR /&gt;2027 where EmpID = '9888' or EmpID = '0177';&lt;BR /&gt;WARNING: No data sets qualify for WHERE processing.&lt;BR /&gt;2028&lt;BR /&gt;2029 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628607#M77566</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-01T23:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628609#M77567</link>
      <description>&lt;P&gt;thank you&amp;nbsp; , but it still does not work&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628609#M77567</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-01T23:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628611#M77568</link>
      <description>&lt;P&gt;&amp;nbsp;spreadsheet need to to contain a tab called Sales as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does that mean ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes ,the file " Sales.xls"&amp;nbsp; in the C:\Users\Documents\Sales.xls'&amp;nbsp; , it was there , and in the spreadsheet , just only one worksheet&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628611#M77568</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-01T23:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628613#M77569</link>
      <description>When programming you have to first ensure that the prior code works. So currently you're trying to set up a libname to an Excel file. It appears that doesn't work. What errors do you get, post your full log from your LIBNAME statement. &lt;BR /&gt;&lt;BR /&gt;Either you don't have the correct license, your code is wrong, or you need PCFILES because you have a mismatch between 32bit and 64 bit system. &lt;BR /&gt;&lt;BR /&gt;Once the libname to the Excel file is set up, you can reference the different tables in the workbook but you need to know the names. PROC DATASETS is a good way to explore that to find out what names you need to use. Generally, you can use the worksheet names in the Excel workbook as data set names, but named ranges can also be a data set name and possibly Excel Tables as well these days. Also, do you have to work with an xls file or can it be an XLSX file? If you can use XLSX you have more modern options, XLS was retired about a decade ago.</description>
      <pubDate>Mon, 02 Mar 2020 00:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628613#M77569</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-02T00:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628616#M77570</link>
      <description>&lt;P&gt;thank you for your help , following is the information from log :&lt;/P&gt;&lt;P&gt;yes , my SAS is 64 byte， and the xls file is 32 byte , but i have install PC file server.&lt;/P&gt;&lt;P&gt;by the way , what's the name range?&lt;/P&gt;&lt;P&gt;2121&lt;BR /&gt;2122 libname apple XLS 'C:\Users\Documents\Sales.xls';&lt;BR /&gt;ERROR: The XLS engine cannot be found.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;2123&lt;BR /&gt;2124 proc print data = apple.Sales;&lt;BR /&gt;ERROR: Libref APPLE is not assigned.&lt;BR /&gt;2125 where EmpID = '9888' or EmpID = '0177';&lt;BR /&gt;WARNING: No data sets qualify for WHERE processing.&lt;BR /&gt;2126&lt;BR /&gt;2127 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.20 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 00:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628616#M77570</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T00:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628621#M77571</link>
      <description>&lt;P&gt;Did you try using the PCFILES engine?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you ever gotten the PC Files Server to work?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 00:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628621#M77571</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-02T00:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628625#M77572</link>
      <description>&lt;P&gt;Named ranges are an &lt;A href="https://support.office.com/en-us/article/Define-and-use-names-in-formulas-4D0F13AC-53B7-422E-AFD2-ABD7FF379C64" target="_self"&gt;Excel concept&lt;/A&gt;, they allow you to create a reference to a table without having a specific sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname apple pcfiles path= 'C:\Users\Documents\Sales.xls';
&lt;BR /&gt;
proc datasets lib=apple;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&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;thank you for your help , following is the information from log :&lt;/P&gt;
&lt;P&gt;yes , my SAS is 64 byte， and the xls file is 32 byte , but i have install PC file server.&lt;/P&gt;
&lt;P&gt;by the way , what's the name range?&lt;/P&gt;
&lt;P&gt;2121&lt;BR /&gt;2122 libname apple XLS 'C:\Users\Documents\Sales.xls';&lt;BR /&gt;ERROR: The XLS engine cannot be found.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;2123&lt;BR /&gt;2124 proc print data = apple.Sales;&lt;BR /&gt;ERROR: Libref APPLE is not assigned.&lt;BR /&gt;2125 where EmpID = '9888' or EmpID = '0177';&lt;BR /&gt;WARNING: No data sets qualify for WHERE processing.&lt;BR /&gt;2126&lt;BR /&gt;2127 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.20 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 01:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628625#M77572</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-02T01:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628631#M77573</link>
      <description>&lt;P&gt;thank you for your help .&lt;/P&gt;&lt;P&gt;yes , i try PCFILES，but it still doesn't work&lt;/P&gt;&lt;P&gt;i have installed the&amp;nbsp; PC files server, when i use wizard import to invert the xls files to csv files , it works well&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 01:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628631#M77573</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T01:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628633#M77574</link>
      <description>&lt;P&gt;it works , but that is not what i want .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 01:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628633#M77574</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T01:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628651#M77578</link>
      <description>&lt;P&gt;Trying to print a table called Apple.Sales that is in an Excel workbook called Sales means you are referencing a worksheet within the workbook called Sales also. If your worksheet is not called Sales then your program will fail with an error - dataset not found.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 03:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628651#M77578</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-02T03:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628652#M77579</link>
      <description>&lt;P&gt;thank you , but , it still doesn't work&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 03:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628652#M77579</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T03:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628668#M77583</link>
      <description>&lt;P&gt;Please run proc setinit and proc productstatus to verify that you have ACCESS to PC Files licensed and installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can avoid all the hassle by simply saving the data to a csv file and importing it with a data step.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 06:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628668#M77583</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-02T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628675#M77586</link>
      <description>&lt;P&gt;If the PCFILES engine works, please post your PROC DATASETS log. Does it list the worksheets in your Excel workbook?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 07:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628675#M77586</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-02T07:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628680#M77590</link>
      <description>&lt;P&gt;i am student , that's my homework ;&lt;/P&gt;
&lt;P&gt;i have the SAS license because i can get SAS for free from my college.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 07:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628680#M77590</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628681#M77591</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 am student , that's my homework ;&lt;/P&gt;
&lt;P&gt;i have the SAS license because i can get SAS for free from my college.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ARE YOU SURE? A definitive answer can only be given by running those procedures. We could go on for hundreds of posts before realizing that your installation is incomplete. Let's be prudent.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 07:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628681#M77591</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-02T07:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628685#M77592</link>
      <description>&lt;P&gt;what you mean is PC files server ?&amp;nbsp; yes , i have installed that .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now the code works , but in some conditions , but i feel somewhere is wrong , let me show you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first , i invert the sales.xls to SAS data set with import wizard and use the sasuser as the libref .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then ,&amp;nbsp; i write the code as following which does work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sasuser "C:\Users\Documents\Sales.xls";
proc print data = sasuser.sales;
   where EmpID = '9888' or EmpID = '0177';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but what i want to say ——i have invert the sales.xls to SAS data set ,why i access it directly instead of sales.xls ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 08:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628685#M77592</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T08:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work ( about using a xls file as sas data set with engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628687#M77593</link>
      <description>&lt;P&gt;it's too late , i have to&amp;nbsp; sleep . thank you for your help. i have work on the issue for 7 hours&amp;nbsp; , i am almost crazy;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 08:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-does-not-work-about-using-a-xls-file-as-sas-data-set-with/m-p/628687#M77593</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-02T08:08:32Z</dc:date>
    </item>
  </channel>
</rss>

