<?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 libname xls pcfiles Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/632619#M187571</link>
    <description>&lt;PRE&gt;libname xls pcfiles path="&amp;amp;dispout."; 

	proc sql noprint;
		drop table xls.DispositionANew,
                   xls.DispositionBNew, 
				   %if &amp;amp;ds_tte. %then %do;
				    %do a = 1 %to &amp;amp;num_dsd.;
					 xls.Sheet&amp;amp;a.,
					 xls.Sheet&amp;amp;a.E,
				    %end;
				   %end;
	               xls.Info
                   ;
	quit; 


	data xls.DispositionANew;
		set final_dispositionA;
	run;&lt;/PRE&gt;&lt;P&gt;For above SAS code, I am getting an error while reading excel files(.xls) files. As we have excel files into .xls format so we can't change engine to "XLSX". Currently I am using SAS v9.4 for running code. Kindly see below snippet of error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated to fix this code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Unable to locate pcfserver.exe. Please install PC Files Server.
ERROR: Error in the LIBNAME statement.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.DispositionANew has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.DispositionBNew has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet1 has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet1E has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet2 has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet2E has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet3 has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet3E has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Info has not been dropped.&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Mar 2020 11:17:18 GMT</pubDate>
    <dc:creator>Harsh11387</dc:creator>
    <dc:date>2020-03-17T11:17:18Z</dc:date>
    <item>
      <title>libname xls pcfiles Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/632619#M187571</link>
      <description>&lt;PRE&gt;libname xls pcfiles path="&amp;amp;dispout."; 

	proc sql noprint;
		drop table xls.DispositionANew,
                   xls.DispositionBNew, 
				   %if &amp;amp;ds_tte. %then %do;
				    %do a = 1 %to &amp;amp;num_dsd.;
					 xls.Sheet&amp;amp;a.,
					 xls.Sheet&amp;amp;a.E,
				    %end;
				   %end;
	               xls.Info
                   ;
	quit; 


	data xls.DispositionANew;
		set final_dispositionA;
	run;&lt;/PRE&gt;&lt;P&gt;For above SAS code, I am getting an error while reading excel files(.xls) files. As we have excel files into .xls format so we can't change engine to "XLSX". Currently I am using SAS v9.4 for running code. Kindly see below snippet of error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated to fix this code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Unable to locate pcfserver.exe. Please install PC Files Server.
ERROR: Error in the LIBNAME statement.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.DispositionANew has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.DispositionBNew has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet1 has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet1E has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet2 has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet2E has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet3 has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Sheet3E has not been dropped.
ERROR: Libref XLS is not assigned.
WARNING: Table XLS.Info has not been dropped.&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2020 11:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/632619#M187571</guid>
      <dc:creator>Harsh11387</dc:creator>
      <dc:date>2020-03-17T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: libname xls pcfiles Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/632625#M187572</link>
      <description>&lt;PRE&gt;ERROR: Unable to locate pcfserver.exe. Please install PC Files Server.&lt;/PRE&gt;
&lt;P&gt;What does macro variable &amp;amp;DISPOUT resolve to?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 11:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/632625#M187572</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-17T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: libname xls pcfiles Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/633227#M187835</link>
      <description>&lt;PRE&gt;/* location and filename of the output */
	%global outfile outpath;
	%let outpath = &amp;amp;top_dir.\Outputs;
	%let outfile = Disposition.xls;

	%global dispout errout;
	%let dispout = &amp;amp;outpath.\&amp;amp;outfile.;	&lt;/PRE&gt;&lt;P&gt;Please see above mention code for macro variable resolution.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 12:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-xls-pcfiles-Error/m-p/633227#M187835</guid>
      <dc:creator>Harsh11387</dc:creator>
      <dc:date>2020-03-19T12:01:46Z</dc:date>
    </item>
  </channel>
</rss>

