<?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: Error  22-322 and error ERROR 200-322 with Regression From Excel in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451638#M23593</link>
    <description>&lt;P&gt;Add some comments to your code so we understand what you're trying to accomplish in each step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code doesn't make sense, so without knowing what you're trying to do, I can make a guess on how to change it.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You&amp;nbsp; can find examples at Video.sas.com &amp;gt; How To Tutorials&amp;gt; Analytics U has an example of how to perform a regression analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problematic portions of your code are below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step doesn't make sense, you don't refer to a SAS data set like that so I"m not sure what you're trying to do with this step at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the regression you don't have a DATA= statement which would tell SAS what data set to use for the regression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data SimioHoursRegression;
Input BrightBox	Service_Panel_Upgrade Number_Inverters Number_Panels Number_Employee_Days Standard_Install_Hours Additional_SOW_Hours;
Datalines = '/folders/myfolders/simiohours.sas7bdat'
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think your regression should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Reg DATA = perm.simiohours;
Model Standard_Install_Hours= BrightBox Service_Panel_Upgrade Number_Inverters Number_Panels Number_Employee_Days	Additional_SOW_Hours;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Apr 2018 17:41:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-05T17:41:07Z</dc:date>
    <item>
      <title>Error  22-322 and error ERROR 200-322 with Regression From Excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451636#M23591</link>
      <description>&lt;P&gt;Hello, I've got some code that I'm doing multiple linear regression on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got data from an Excel file and that code is okay. It's when I'm referencing the data for the regression that I have problems on.&lt;/P&gt;&lt;P&gt;I know it's with the Datalines&amp;nbsp;code. But I don't know what to do with it. I'm sorry for the bother. Could you please help?&lt;BR /&gt;&lt;BR /&gt;The errors are&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError focus-line"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, CANCEL, PGM.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LibName Perm '/folders/myfolders/';

Proc import DataFile='/folders/myfolders/SimioHours.xlsx'
	Out=perm.SimioHours
	dbms=xlsx replace;
	
Run;

Proc Contents data=perm.SimioHours;
Run;

Proc Print data=perm.SimioHours;
Run;

Data SimioHoursRegression;
Input BrightBox	Service_Panel_Upgrade Number_Inverters Number_Panels Number_Employee_Days Standard_Install_Hours Additional_SOW_Hours;
Datalines = '/folders/myfolders/simiohours.sas7bdat'
;

Proc Reg; Model Standard_Install_Hours= BrightBox Service_Panel_Upgrade Number_Inverters Number_Panels Number_Employee_Days	Additional_SOW_Hours;
Run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451636#M23591</guid>
      <dc:creator>taggerung</dc:creator>
      <dc:date>2018-04-05T17:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error  22-322 and error ERROR 200-322 with Regression From Excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451638#M23593</link>
      <description>&lt;P&gt;Add some comments to your code so we understand what you're trying to accomplish in each step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code doesn't make sense, so without knowing what you're trying to do, I can make a guess on how to change it.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You&amp;nbsp; can find examples at Video.sas.com &amp;gt; How To Tutorials&amp;gt; Analytics U has an example of how to perform a regression analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problematic portions of your code are below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step doesn't make sense, you don't refer to a SAS data set like that so I"m not sure what you're trying to do with this step at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the regression you don't have a DATA= statement which would tell SAS what data set to use for the regression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data SimioHoursRegression;
Input BrightBox	Service_Panel_Upgrade Number_Inverters Number_Panels Number_Employee_Days Standard_Install_Hours Additional_SOW_Hours;
Datalines = '/folders/myfolders/simiohours.sas7bdat'
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think your regression should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Reg DATA = perm.simiohours;
Model Standard_Install_Hours= BrightBox Service_Panel_Upgrade Number_Inverters Number_Panels Number_Employee_Days	Additional_SOW_Hours;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451638#M23593</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-05T17:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error  22-322 and error ERROR 200-322 with Regression From Excel</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451640#M23594</link>
      <description>&lt;P&gt;That and getting rid of the Input statement got the same regression and no errors. Thanks a ton!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-22-322-and-error-ERROR-200-322-with-Regression-From-Excel/m-p/451640#M23594</guid>
      <dc:creator>taggerung</dc:creator>
      <dc:date>2018-04-05T17:54:36Z</dc:date>
    </item>
  </channel>
</rss>

