<?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: Program Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668639#M200460</link>
    <description>&lt;P&gt;There is no libname engine to read XLS format files.&amp;nbsp; There is one for XLSX files.&amp;nbsp; But even then you should get in the habit of telling the libname statement what engine to use when you don't want to use the normal base SAS engine, instead of forcing it to guess.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname read xlsx '/folders/myfolders/Dataset/Wages.xlsx';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are forced to use the XLS file then you will need to use PROC IMPORT to get the data converted into a SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jul 2020 14:21:25 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-07-12T14:21:25Z</dc:date>
    <item>
      <title>Program Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668560#M200436</link>
      <description>&lt;P&gt;Hello all the members, I hope you are very well.&lt;/P&gt;
&lt;P&gt;I run the following program&lt;/P&gt;
&lt;P&gt;&amp;lt;/&lt;/P&gt;
&lt;P&gt;title "Statistics from Sales Spreadsheet";&lt;BR /&gt;libname Read '/folders/myfolders/Dataset/Wages.xls'; &lt;BR /&gt;proc means data=Read.'Permanent$' n mean;&lt;BR /&gt;var Wage Hours_Worked;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and here is the errors in the log:&lt;/P&gt;
&lt;P&gt;&amp;lt;/&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;73 *6-3*;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 title "Statistics from Sales Spreadsheet";&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;75 libname Read '/folders/myfolders/Dataset/Wages.xls';&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1594473106809" class="sasError"&gt;ERROR: Library READ is not in a valid format for access method RANDOM.&lt;/DIV&gt;
&lt;DIV id="sasLogError2_1594473106809" class="sasError"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 /* proc means data='/folders/myfolders/Dataset/Wages'.'Permanent$'n mean; */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 proc means data=Read.'Permanent$' n mean;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;____________&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;
&lt;DIV id="sasLogError3_1594473106809" class="sasError"&gt;ERROR: Invalid data set name Read..&lt;/DIV&gt;
&lt;DIV id="sasLogError4_1594473106809" class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, CHARTYPE, CLASSDATA, CLM, COMPLETETYPES, CSS, CV, DATA,&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;DESCEND, DESCENDING, DESCENDTYPES, EXCLNPWGT, EXCLNPWGTS, EXCLUSIVE, FW, IDMIN, INCAS, KURTOSIS, LCLM, MAX, MAXDEC,&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;MEAN, MEDIAN, MIN, MISSING, MODE, N, NDEC, NMISS, NOLABELS, NONOBS, NOPRINT, NOTHREADS, NOTRAP, NWAY, ORDER, P1, P10,&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;P20, P25, P30, P40, P5, P50, P60, P70, P75, P80, P90, P95, P99, PCTLDEF, PRINT, PRINTALL, PRINTALLTYPES, PRINTIDS,&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;PRINTIDVARS, PROBT, Q1, Q3, QMARKERS, QMETHOD, QNTLDEF, QRANGE, RANGE, SKEWNESS, STACKODS, STACKODSOUTPUT, STDDEV,&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;STDERR, SUM, SUMSIZE, SUMWGT, T, THREADS, UCLM, USS, VAR, VARDEF.&lt;/DIV&gt;
&lt;DIV id="sasLogError5_1594473106809" class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 var Wage Hours_Worked;&lt;/DIV&gt;
&lt;DIV id="sasLogError6_1594473106809" class="sasError"&gt;ERROR: No data set open to look up variables.&lt;/DIV&gt;
&lt;DIV id="sasLogError7_1594473106809" class="sasError"&gt;ERROR: No data set open to look up variables.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1594473106809" class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1594473106809" class="sasNote"&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.10 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;80&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;81 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;93&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_2" class="sasLog" style="background-color: transparent; -webkit-user-select: text; -webkit-user-modify: read-only; -webkit-touch-callout: default; border-top-width: 0px; border-bottom-width: 0px;"&gt;/&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Thank you very much,&lt;/P&gt;
&lt;P&gt;Deeply appreciated.&lt;/P&gt;
&lt;P&gt;I am looking forward to your answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 13:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668560#M200436</guid>
      <dc:creator>seamoh</dc:creator>
      <dc:date>2020-07-11T13:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Program Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668561#M200437</link>
      <description>&lt;P&gt;Open file&amp;nbsp;&lt;SPAN&gt;Wages.xls with excel and save it , if possible, as an xlsx&amp;nbsp; type,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then change the code to read the Wages.xlsx file and try.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Otherwise you need to assign FILENAME the the&amp;nbsp;Wages.xls file with "excel" engine,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;import it and only afterwards you can rub proc means on the sas dataset.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 13:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668561#M200437</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-07-11T13:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Program Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668639#M200460</link>
      <description>&lt;P&gt;There is no libname engine to read XLS format files.&amp;nbsp; There is one for XLSX files.&amp;nbsp; But even then you should get in the habit of telling the libname statement what engine to use when you don't want to use the normal base SAS engine, instead of forcing it to guess.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname read xlsx '/folders/myfolders/Dataset/Wages.xlsx';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are forced to use the XLS file then you will need to use PROC IMPORT to get the data converted into a SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 14:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Program-Error/m-p/668639#M200460</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-12T14:21:25Z</dc:date>
    </item>
  </channel>
</rss>

