<?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: 0 OBSERVATIONS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21560#M4583</link>
    <description>Unless there is another part of this program you aren't showing us, where work.houses is created, it looks like you're trying to use the houses dataset as input (with the 'set' statement) before it exists.  That's not going to work, and the error message is telling you that.</description>
    <pubDate>Thu, 03 Mar 2011 15:00:26 GMT</pubDate>
    <dc:creator>martha_sas</dc:creator>
    <dc:date>2011-03-03T15:00:26Z</dc:date>
    <item>
      <title>0 OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21558#M4581</link>
      <description>hey guys&lt;BR /&gt;
&lt;BR /&gt;
i need some help,,below is my coding of what im trying to run in SAS&lt;BR /&gt;
&lt;BR /&gt;
/*Create the formats*/&lt;BR /&gt;
PROC FORMAT;&lt;BR /&gt;
VALUE AR 1 = 'Newark' 2 = 'Southwell';&lt;BR /&gt;
VALUE HT 1 = 'Detached' 2 = 'Semi-Detached' 3 = 'Terrace';&lt;BR /&gt;
RUN; &lt;BR /&gt;
/*Do not add any dates or number*/&lt;BR /&gt;
OPTIONS NODATE NONUMBER;&lt;BR /&gt;
&lt;BR /&gt;
/*The name of the dataset is "Houses"*/&lt;BR /&gt;
Data Houses;&lt;BR /&gt;
set houses;&lt;BR /&gt;
TITLE1 'Data Collection on Houses';&lt;BR /&gt;
/*The label statement is used to give better names to variables.*/&lt;BR /&gt;
label ID = 'ID NO'&lt;BR /&gt;
	  PR = 'Price'&lt;BR /&gt;
	  AR = 'Area'&lt;BR /&gt;
	  HT = 'House Type'&lt;BR /&gt;
	  NOB = 'Number of Bedrooms';&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC UNIVARIATE DATA = Houses;&lt;BR /&gt;
Title2 'Histogram statement for house prices';&lt;BR /&gt;
Histogram NOB;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC UNIVARIATE DATA = Houses;&lt;BR /&gt;
QQPLOT PR;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
when i try to run it i get the following error message.... &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: File WORK.HOUSES.DATA does not exist.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
this is the &lt;BR /&gt;
&lt;BR /&gt;
  VALUE HT 1 = 'Detached' 2 = 'Semi-Detached' 3 = 'Terrace';&lt;BR /&gt;
NOTE: Format HT has been output.&lt;BR /&gt;
5    RUN;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;
      real time           0.04 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
6    /*Do not add any dates or number*/&lt;BR /&gt;
7    OPTIONS NODATE NONUMBER;&lt;BR /&gt;
8&lt;BR /&gt;
9    /*The name of the dataset is "Houses"*/&lt;BR /&gt;
10   Data Houses;&lt;BR /&gt;
11   set houses;&lt;BR /&gt;
&lt;BR /&gt;
ERROR: File WORK.HOUSES.DATA does not exist.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
12   TITLE1 'Data Collection on Houses';&lt;BR /&gt;
13   /*The label statement is used to give better names to variables.*/&lt;BR /&gt;
14   label ID = 'ID NO'&lt;BR /&gt;
15         PR = 'Price'&lt;BR /&gt;
16         AR = 'Area'&lt;BR /&gt;
17         HT = 'House Type'&lt;BR /&gt;
18         NOB = 'Number of Bedrooms';&lt;BR /&gt;
19   RUN;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
WARNING: The data set WORK.HOUSES may be incomplete.  When this step was stopped there were 0&lt;BR /&gt;
         observations and 5 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
20&lt;BR /&gt;
21   PROC UNIVARIATE DATA = Houses;&lt;BR /&gt;
22   Title2 'Histogram statement for house prices';&lt;BR /&gt;
23   Histogram NOB;&lt;BR /&gt;
24   RUN;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: No observations in data set WORK.HOUSES.&lt;BR /&gt;
NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;
      real time           0.11 seconds&lt;BR /&gt;
      cpu time            0.09 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
25&lt;BR /&gt;
26   PROC UNIVARIATE DATA = Houses;&lt;BR /&gt;
27   QQPLOT PR;&lt;BR /&gt;
28   RUN;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: No observations in data set WORK.HOUSES.&lt;BR /&gt;
NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;
      real time           0.04 seconds&lt;BR /&gt;
      cpu time            0.03 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And when i try and open it from the results i get a another error message &lt;BR /&gt;
&lt;BR /&gt;
DATA SET HAS 0 OBSERVATIONS&lt;BR /&gt;
&lt;BR /&gt;
what do i  need to do to fix this? helpp please someone! &lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Thu, 03 Mar 2011 14:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21558#M4581</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-03T14:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: 0 OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21559#M4582</link>
      <description>My guess is that the SAS dataset "houses" is in a directory somewhere.&lt;BR /&gt;
&lt;BR /&gt;
You need to create a LIBNAME to point to that directory, something like&lt;BR /&gt;
LIBNAME mylib 'C:\&lt;MY directory=""&gt;';&lt;BR /&gt;
&lt;BR /&gt;
and then change the SET statement to point to &lt;BR /&gt;
SET mylib.houses;&lt;BR /&gt;
&lt;BR /&gt;
so SAS knows where to find the data.  You may want to read this book&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/PDF/default/basess.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/PDF/default/basess.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
or any of the other Books by Users (Cody's comes to mind) about getting started with SAS programming.&lt;/MY&gt;</description>
      <pubDate>Thu, 03 Mar 2011 14:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21559#M4582</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-03-03T14:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: 0 OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21560#M4583</link>
      <description>Unless there is another part of this program you aren't showing us, where work.houses is created, it looks like you're trying to use the houses dataset as input (with the 'set' statement) before it exists.  That's not going to work, and the error message is telling you that.</description>
      <pubDate>Thu, 03 Mar 2011 15:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21560#M4583</guid>
      <dc:creator>martha_sas</dc:creator>
      <dc:date>2011-03-03T15:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: 0 OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21561#M4584</link>
      <description>It seems like that WORK library is not your temporary library.&lt;BR /&gt;
Or house is in other library.&lt;BR /&gt;
You can try to use temp.house&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 04 Mar 2011 05:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-OBSERVATIONS/m-p/21561#M4584</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-04T05:02:52Z</dc:date>
    </item>
  </channel>
</rss>

