<?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 am I getting this error message?: no variables specified for an SSCP matrix in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530192#M144967</link>
    <description>&lt;P&gt;Compare the first line of each procedure. Your first, non-working example, has no DATA set listed, while the second one does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the colored section in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257791"&gt;@khalillx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I run this code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5" color="#993366"&gt;&lt;STRONG&gt;proc reg; * No data input shown here;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;model testscr = str;&lt;BR /&gt;output out= mydata p= yhat r= uhat;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get this error message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.MYDATA has 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set WORK.MYDATA was not replaced because new file is incomplete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure why. I already ran a regression using these variables but now I'm trying to print out a graph of the actual and predicted values of testscr against str. Here is the first regression I ran that was successful:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;proc reg &lt;FONT color="#993366"&gt;data=one;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;model1: model testscr = str;&lt;BR /&gt;plot (testscr predicted.)*str /overlay;&lt;BR /&gt;output out=newdat residual= uhat predicted=testscr_hat;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 19:56:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-01-25T19:56:55Z</dc:date>
    <item>
      <title>Why am I getting this error message?: no variables specified for an SSCP matrix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530189#M144965</link>
      <description>&lt;P&gt;When I run this code&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg;&lt;BR /&gt;model testscr = str;&lt;BR /&gt;output out= mydata p= yhat r= uhat;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.MYDATA has 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set WORK.MYDATA was not replaced because new file is incomplete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why. I already ran a regression using these variables but now I'm trying to print out a graph of the actual and predicted values of testscr against str. Here is the first regression I ran that was successful:&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=one;&lt;BR /&gt;model1: model testscr = str;&lt;BR /&gt;plot (testscr predicted.)*str /overlay;&lt;BR /&gt;output out=newdat residual= uhat predicted=testscr_hat;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 19:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530189#M144965</guid>
      <dc:creator>khalillx</dc:creator>
      <dc:date>2019-01-25T19:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error message?: no variables specified for an SSCP matrix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530192#M144967</link>
      <description>&lt;P&gt;Compare the first line of each procedure. Your first, non-working example, has no DATA set listed, while the second one does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the colored section in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257791"&gt;@khalillx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I run this code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5" color="#993366"&gt;&lt;STRONG&gt;proc reg; * No data input shown here;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;model testscr = str;&lt;BR /&gt;output out= mydata p= yhat r= uhat;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get this error message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.MYDATA has 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set WORK.MYDATA was not replaced because new file is incomplete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure why. I already ran a regression using these variables but now I'm trying to print out a graph of the actual and predicted values of testscr against str. Here is the first regression I ran that was successful:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;proc reg &lt;FONT color="#993366"&gt;data=one;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;model1: model testscr = str;&lt;BR /&gt;plot (testscr predicted.)*str /overlay;&lt;BR /&gt;output out=newdat residual= uhat predicted=testscr_hat;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 19:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530192#M144967</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-25T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error message?: no variables specified for an SSCP matrix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530193#M144968</link>
      <description>Oh my god thank you. I'm fairly new to sas so I make a lot of errors like that.</description>
      <pubDate>Fri, 25 Jan 2019 19:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530193#M144968</guid>
      <dc:creator>khalillx</dc:creator>
      <dc:date>2019-01-25T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error message?: no variables specified for an SSCP matrix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530195#M144970</link>
      <description>&lt;P&gt;Are the variables&lt;SPAN&gt;&amp;nbsp;testscr and str actually in your data set?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Run a PROC CONTENTS on your data and verify.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 20:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530195#M144970</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-25T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting this error message?: no variables specified for an SSCP matrix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530241#M144980</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257791"&gt;@khalillx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Oh my god thank you. I'm fairly new to sas so I make a lot of errors like that.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS will actually try to help you by using the last data set when you don't specify one. The procedure notes should indicate which set was used. An example log where I called proc print without a data set. SAS tells me which set was used. However in some circumstances either a last data set hasn't been used yet or you asked to use variables that didn't exist in the last set.&lt;/P&gt;
&lt;PRE&gt;304  proc print;run;
NOTE: Writing HTML Body file: sashtml1.htm

NOTE: There were 9 observations read from the data set &lt;STRONG&gt;&lt;FONT color="#ff00ff"&gt;AAPPS.ALPHASTD&lt;/FONT&gt;&lt;/STRONG&gt;.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.74 seconds
      cpu time
&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 21:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-am-I-getting-this-error-message-no-variables-specified-for/m-p/530241#M144980</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-25T21:52:33Z</dc:date>
    </item>
  </channel>
</rss>

