<?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 No valid observations are found in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620431#M19520</link>
    <description>&lt;P&gt;Hi everyone;&lt;/P&gt;&lt;P&gt;I tried to make a prediction on data file. and the errors turns up like below. Can you please tell me what wrong is?&lt;/P&gt;&lt;PRE&gt;DATA add;
	INPUT LogSalary YrMajor @@;YrMajor2=YrMajor*YrMajor;
CARDS;
. 10 
. 20 
;
RUN;
PROC PRINT DATA = add;
RUN;
DATA BOTH;
	SET A2(WHERE=(name^="ROSE,PETE")) add;
RUN;
PROC REG DATA=BOTH;
	MODEL LogSalary = YrMajor YrMajor2/CLB;
	OUTPUT OUT=resid R=resid P=pred LCL=lcl UCL=ucl;
RUN;
QUIT;
PROC PRINT DATA=resid; 
	Var Salary YrMajor YrMajor2 pred lcl ucl;
	WHERE Salary = .;
RUN;
 
 86         PROC REG DATA=BOTH;
 87         MODEL LogSalary = YrMajor YrMajor2/CLB;
 88         OUTPUT OUT=resid R=resid P=pred LCL=lcl UCL=ucl;
 89         RUN;
 
 ERROR: No valid observations are found.
 90         QUIT;
 

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 05:26:45 GMT</pubDate>
    <dc:creator>kngu022</dc:creator>
    <dc:date>2020-01-28T05:26:45Z</dc:date>
    <item>
      <title>No valid observations are found</title>
      <link>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620431#M19520</link>
      <description>&lt;P&gt;Hi everyone;&lt;/P&gt;&lt;P&gt;I tried to make a prediction on data file. and the errors turns up like below. Can you please tell me what wrong is?&lt;/P&gt;&lt;PRE&gt;DATA add;
	INPUT LogSalary YrMajor @@;YrMajor2=YrMajor*YrMajor;
CARDS;
. 10 
. 20 
;
RUN;
PROC PRINT DATA = add;
RUN;
DATA BOTH;
	SET A2(WHERE=(name^="ROSE,PETE")) add;
RUN;
PROC REG DATA=BOTH;
	MODEL LogSalary = YrMajor YrMajor2/CLB;
	OUTPUT OUT=resid R=resid P=pred LCL=lcl UCL=ucl;
RUN;
QUIT;
PROC PRINT DATA=resid; 
	Var Salary YrMajor YrMajor2 pred lcl ucl;
	WHERE Salary = .;
RUN;
 
 86         PROC REG DATA=BOTH;
 87         MODEL LogSalary = YrMajor YrMajor2/CLB;
 88         OUTPUT OUT=resid R=resid P=pred LCL=lcl UCL=ucl;
 89         RUN;
 
 ERROR: No valid observations are found.
 90         QUIT;
 

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 05:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620431#M19520</guid>
      <dc:creator>kngu022</dc:creator>
      <dc:date>2020-01-28T05:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: No valid observations are found</title>
      <link>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620435#M19521</link>
      <description>&lt;P&gt;a&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306646"&gt;@kngu022&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone;&lt;/P&gt;
&lt;P&gt;I tried to make a prediction on data file. and the errors turns up like below. Can you please tell me what wrong is?&lt;/P&gt;
&lt;PRE&gt;DATA add;
	INPUT LogSalary YrMajor @@;YrMajor2=YrMajor*YrMajor;
CARDS;
. 10 
. 20 
;
RUN;
PROC PRINT DATA = add;
RUN;
DATA BOTH;
	SET A2(WHERE=(name^="ROSE,PETE")) add;
RUN;
PROC REG DATA=BOTH;
	MODEL LogSalary = YrMajor YrMajor2/CLB;
	OUTPUT OUT=resid R=resid P=pred LCL=lcl UCL=ucl;
RUN;
QUIT;
PROC PRINT DATA=resid; 
	Var Salary YrMajor YrMajor2 pred lcl ucl;
	WHERE Salary = .;
RUN;
 
 86         PROC REG DATA=BOTH;
 87         MODEL LogSalary = YrMajor YrMajor2/CLB;
 88         OUTPUT OUT=resid R=resid P=pred LCL=lcl UCL=ucl;
 89         RUN;
 
 ERROR: No valid observations are found.
 90         QUIT;
 

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DATA BOTH step tells SAS to read in all the qualifying observations from A2, followed by the two observations from ADD, resulting in N(A2) + N(ADD) observations.&amp;nbsp; We can see in your program that ADD only has missing values for LOGSALARY.&amp;nbsp; Apparently the observations originating in A2 have the same problem, since the PROC REG reports "No valid observations.",&amp;nbsp; i.e. LOGSALARY is missing for every observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 06:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620435#M19521</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-28T06:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: No valid observations are found</title>
      <link>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620441#M19523</link>
      <description>&lt;P&gt;Do you mean that on my data file"add" missing the LogSalary value? How can I fix it when it is what I want to predict with value of YrMajor be 10 and 20?&lt;/P&gt;&lt;PRE&gt;DATA add;
	INPUT LogSalary YrMajor @@;YrMajor2=YrMajor*YrMajor;
CARDS;
. 10 
. 20 
;
RUN;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 07:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620441#M19523</guid>
      <dc:creator>kngu022</dc:creator>
      <dc:date>2020-01-28T07:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: No valid observations are found</title>
      <link>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620560#M19526</link>
      <description>&lt;P&gt;Check the size of the BOTH data set. If your WHERE clause is incorrect, then it will only have the two scoring observations from the ADD data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, perhaps the correct WHERE clause needs a space after the comma:&lt;/P&gt;
&lt;PRE&gt;SET A2(WHERE=(name^="ROSE, PETE")) add;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 16:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/No-valid-observations-are-found/m-p/620560#M19526</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-28T16:44:21Z</dc:date>
    </item>
  </channel>
</rss>

